Thank you! for you quick reply!
My problem is a little different, in few words, i'm still at the
previous step, i'm trying to find a way to that all the requests to:

*.myhost.com/myapp/

can be handled by a single war.
So first of all i'm looking if Tomcat handle in someway the wildcard
for sudomains..
I have found something here:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg23452.html

But i've still to search :-)

On Wed, Mar 5, 2008 at 9:59 PM, Gregory Gerard <[EMAIL PROTECTED]> wrote:
> Look at the Host header to see how the browser addressed your
>  webserver and then you can specialize your output.
>
>  theHostString = theHttpServletRequest.getHeader("Host");
>
>  if (theHostString != null && theHostString.trim().length > ) {
>  if (theHostString.startsWith("sub1.")) {
>  doSub1Content(...);
>  } else if (...) {
>  } else {
>  // unknown subdomain
>  sendDefaultContent(...);
>  }
>  } else {
>  // someone possible spoofing the host header or HTTP 1.0 which I
>  don't believe had the host header
>  sendDefaultContent(...);
>  }
>
>  greg
>
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to