using wildcards in host-aliases for Tomcat's virtual hosts

Posted by Marten Sytema on Server Fault See other posts from Server Fault or by Marten Sytema
Published on 2011-01-22T10:43:01Z Indexed on 2012/07/04 9:18 UTC
Read the original article Hit count: 282

Filed under:
|
|

I want to do the following with Tomcat 5.5:

*.mydomain.com should go to my webapp, located at the virtual host mydomain.com. So I have a virtual host mydomain.com, and I want all *.mydomain.com also go there.

Now, if I do this, it doesn't pick up the virtual host, and just goes to the default one (which is not set to mydomain.com).

How to fix this? I basically would like to allow wildcards in the host alias, or in the virtual host name itself.

(The DNS settings are alright by the way)

© Server Fault or respective owner

Related posts about dns

Related posts about tomcat