AW: Several hosts within one tomcat / catch-all problem

2010-11-24 Thread Steffen Heil
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:

Re: AW: Several hosts within one tomcat / catch-all problem

2010-11-24 Thread André Warnier
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,

Re: AW: Several hosts within one tomcat / catch-all problem

2010-11-24 Thread Christopher Schultz
-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 -

Re: AW: Several hosts within one tomcat / catch-all problem

2010-11-24 Thread Christopher Schultz
-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

Re: Several hosts within one tomcat / catch-all problem

2010-11-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 11/19/2010 11:59 AM, Konstantin Kolinko wrote: 2010/11/19 Steffen Heil li...@steffen-heil.de: Hi We have a web application which usually runs on a certain host all alone - it is the only context for that host. However, it allows

Re: Several hosts within one tomcat / catch-all problem

2010-11-22 Thread Konstantin Kolinko
2010/11/21 David Fisher dfis...@jmlafferty.com: and use JMX or call mapper.addHostAlias(..) directly to add aliases programmatically at runtime.  (though there is no guarantee that the Mapper API does not change between Tomcat minor releases). I investigated what an implementation of this

Re: Several hosts within one tomcat / catch-all problem

2010-11-21 Thread David Fisher
Hi Konstantin, BTW, you can put those names in an external file and use it in the server.xml as an XML entity. Like the example in http://wiki.apache.org/tomcat/FAQ/Password Inspired by this thread and having a similar issue in maintaining virtual host aliases I edited my server.xml as

Several hosts within one tomcat / catch-all problem

2010-11-19 Thread Steffen Heil
Hi We have a web application which usually runs on a certain host all alone - it is the only context for that host. However, it allows to use different hostnames and therefore we use aliases in our server.xml per host. Now more and more users of those application want to use more subdomains and

Re: Several hosts within one tomcat / catch-all problem

2010-11-19 Thread Pid
On 19/11/2010 15:48, Steffen Heil wrote: Hi We have a web application which usually runs on a certain host all alone - it is the only context for that host. However, it allows to use different hostnames and therefore we use aliases in our server.xml per host. Now more and more users of

Re: Several hosts within one tomcat / catch-all problem

2010-11-19 Thread Konstantin Kolinko
2010/11/19 Steffen Heil li...@steffen-heil.de: Hi We have a web application which usually runs on a certain host all alone - it is the only context for that host. However, it allows to use different hostnames and therefore we use aliases in our server.xml per host. Now more and more users