Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

catch-all host mapping

Marco Pöhler

2004-01-03


Hi,

I want to map every request like www1.mydomain.com and www2.mydomain.com to
one single webapp. That is possible using something like that:

----->%-----
<Host name="www1.mydomain.com" ...>
 <Alias>www2.mydomain.com</Alias>
 ...
</Host>
-----%<-----

That work's but I don't know how many wwwX.mydomains.com exists in the
future, and I don't want to add a Alias-line every time I add a new
subdomain. In my thoughts it should be possible to configure something like
that:

----->%-----
<Host name="*.mydomain.com" ...>
 ...
</Host>
-----%<-----

But that doesn't work :-( Any Ideas to get this working ? I'm using tomcat
5.0.16 on jdk1.4.2, SuSE Linux.

thanks in advance

Marco

---
http://www.poehlerpoehler.de
http://www.archive4mail.com



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.