> From: GF [mailto:[EMAIL PROTECTED]
> Subject: Re: handle with a single .war all the request to N subdomains
>
> i'm trying to find a way to that all the requests to:
> *.myhost.com/myapp/
> can be handled by a single war.
Unless you've fiddled with the config in
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 sudoma
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(...);