Sorry if I was somewhat unclear.

What I would like to accomplish is the following:

If someone types start.test.example.com it should refer to a certain page.
If someone types hello.test.example.com it should refer to the same page.
I would like the user to be able to type anything before the test.example.com 
and tomcat still accepts it and refers to the correct page 
(<anything>.test.example.com)

I know I can define multiple hosts, but it is not possible to know all the 
possibilities.
So I was hoping the '*' wildcard would work (put "*.test.example.com" as host 
name in server.xml), but it doesn't.

Tomcat 6
Java 1.6
CentOS 5.2

Thanks,

-Bart



> Date: Mon, 30 Mar 2009 12:04:56 +0100
> From: p...@pidster.com
> To: users@tomcat.apache.org
> Subject: Re: virtual hosts
> 
> Bart Ophelders wrote:
> > Hi,
> > 
> > I would like to know if it is possible to let tomcat redirect ANY url 
> > ending with for example test.example.com to a certain webapp.
> 
> It's not clear what you mean.  URLs normally *start* with a domain,
> rather than end with it.
> 
> If you mean can I assign "*.domain.com" to a specific webapp, the answer
> is yes - by defining the default host for a service.
> 
> Perhaps you can elaborate?
> 
> p
> 
> 
> P.S. Java version, Tomcast version, OS etc?
> 
> 
> 
> 
> > Thanks in advance!
> > 
> > -Bart Ophelders
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

Reply via email to