Hi,

You can map *.somedomain.com via ServerAlias in httpd (apache).
Then you could use proxypass (reverse proxying) or urlrewrite.
for example  (from httpd.conf):

<VirtualHost *>
ServerName www.domain.net
ServerAlias *.domain.net
ProxyPass / http://somehost.domain.net:8080/
ProxyPassReverse / http://somehost.domain.net:8080/
</VirtualHost>

This would redirect any request into somehost.domain.net on port 8080.
this way you need only one host in tomcat server.xml. it should have the name "somehost.domain.net"


I don't think you can use acronyms where you specify host-aliases in server.xml.

hope it helps
-reynir


Henrik Gammelmark wrote:

Is there any way I can catch all subdomains belonging to a domain-name within one <Host> tag?

<Host bla..bla...> <Alias>*.domain2.com</Alias></Host>

The above illustrates what I wish to do, but it seems tomcat handles the asterisk literally instead of a wildcard. Using Tomcat 5 hooked up to Apache2 using mod-jk2.

Any help is appreciated. Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to