AW: Several hosts within one tomcat / catch-all problem
Hi Perhaps I don't understand, but I agree with Pid's suggestion: just use defaultHost -- that's what it's for, right? Yes, if you have only one. However we have the following setup: App1: domain1.tld, www.domain1.tld App2: domain2.tld, www.domain2.tld, additional.domain2.tld App3: domain3.tld, www.domain3.tld, another.domain3.tld Now, defaultHost resolves the issue for ONE of these. But what we really need id: App1: domain1.tld, *.domain1.tld App2: domain2.tld, *.domain2.tld App3: domain3.tld, *.domain3.tld This cannot be done with defaultHost, can it? Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
Re: AW: Several hosts within one tomcat / catch-all problem
Steffen Heil wrote: Hi Perhaps I don't understand, but I agree with Pid's suggestion: just use defaultHost -- that's what it's for, right? Yes, if you have only one. However we have the following setup: App1: domain1.tld, www.domain1.tld App2: domain2.tld, www.domain2.tld, additional.domain2.tld App3: domain3.tld, www.domain3.tld, another.domain3.tld Now, defaultHost resolves the issue for ONE of these. But what we really need id: App1: domain1.tld, *.domain1.tld App2: domain2.tld, *.domain2.tld App3: domain3.tld, *.domain3.tld This cannot be done with defaultHost, can it? You are right, it cannot. But even if this is an outside opinion by a non-Java non-Tomcat expert, it should not be too difficult to find the code which matches hostnames and aliases with the request Host: header, and change it from an exact to a regexp match, no ? Or introduce a new AliasMatch tag ? (that may be more ambitious, but maybe more elegant) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: AW: Several hosts within one tomcat / catch-all problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steffan, On 11/24/2010 8:22 AM, Steffen Heil wrote: This cannot be done with defaultHost, can it? Now I understand, and you are correct. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkztbVAACgkQ9CaO5/Lv0PBoOACgv8nlpjcSJnF6gSBci+Zc3RR6 mDwAn2HsDSmJ21vvFYL2XDz9WMd46XOe =85fQ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: AW: Several hosts within one tomcat / catch-all problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/24/2010 8:38 AM, André Warnier wrote: But even if this is an outside opinion by a non-Java non-Tomcat expert, it should not be too difficult to find the code which matches hostnames and aliases with the request Host: header, and change it from an exact to a regexp match, no ? Or introduce a new AliasMatch tag ? (that may be more ambitious, but maybe more elegant) As Konstantin pointed out, all that stuff is in the Mapper (which is org.apache.tomcat.util.http.mapper.Mapper). I would say that using an AliasMatch would be a good idea because a) it mirrors httpd-style configuration where Foo does exact matches while FooMatch allows regular expressions, etc. and b) it shouldn't diminish performance of the existing Alias code -- that is, you only pay for it if you need it. Steffen, care to log an enhancement request in bugzilla? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkztbeQACgkQ9CaO5/Lv0PADLQCgnlWy5+D+3JdxyW65PG+ITlcf ey8AoJNxXJJE4KE6iehVMyGfj0gfe+/T =uhVA -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org