Re: Implementing wildcard hostnames or aliases

2008-02-13 Thread Remy Maucherat
Michael Wyraz wrote: Hi, I was searching for a way to use wildcard host names in tomcat (e.g. *.myhost.com). With the current implementation it seems not to be possible. I found some ideas like using a valve at engine level which forwards to the correct hostname. The problem with this is that

Re: Implementing wildcard hostnames or aliases

2008-02-12 Thread Michael Wyraz
Hi Pid, Is there a reason why you can't exploit the defaultHost attribute of the Engine element in server.xml? Using the default host would result in that I can do that wildcard mapping only for one host. Additionally also any other host that maps to any if der server's IPs and even the IPs i

Re: Implementing wildcard hostnames or aliases

2008-02-12 Thread Pid
Michael Wyraz wrote: Hi, I have done further research for this topic and I found a solution for tomcat 5.5: http://www.mhsoftware.com/~gsexton/Mapper.java Should this also work on Tomcat 6 (simply to change the Mapper implementation)? Can the mapper class be replaced via configuration (I don't

Re: Implementing wildcard hostnames or aliases

2008-02-12 Thread Michael Wyraz
Hi, I have done further research for this topic and I found a solution for tomcat 5.5: http://www.mhsoftware.com/~gsexton/Mapper.java Should this also work on Tomcat 6 (simply to change the Mapper implementation)? Can the mapper class be replaced via configuration (I don't think so beause it's

Implementing wildcard hostnames or aliases

2008-02-12 Thread Michael Wyraz
Hi, I was searching for a way to use wildcard host names in tomcat (e.g. *.myhost.com). With the current implementation it seems not to be possible. I found some ideas like using a valve at engine level which forwards to the correct hostname. The problem with this is that the servlets wouln'd