tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henrik Gammelmark <li...@geemark.com>
Subject Re: Wildcard subdomains
Date Sun, 08 Aug 2004 19:26:13 GMT
Thank you very much, I'll try that - by the way, does this user-list 
have a newsgroup as well or is email-lists the only option? Thank you

> 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: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message