Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Tomcat web.xml <url-pattern> & Apache httpd.conf <VirtualHost xxx.com> DocumentRoot

mail@adventureforum.net

2003-09-16


Hi,

Currently i'm having virtual hosts (subdomains) on Apache-2:
abc.xxx.com
def.xxx.com
ghi.xxx.com
... with different DocumentRoots!

On Tomcat-5 i have a servlet 'file' with <url-pattern>/file</url-pattern>

On workers2.properties i have [uri:/docs/*]

This makes that i got the following:
abc.xxx.com/docs/file
def.xxx.com/docs/file
ghi.xxx.com/docs/file
... and all three of them are showing the expected results.

But i only want:
abc.xxx.com/docs/file

and not:
def.xxx.com/docs/file
ghi.xxx.com/docs/file

What to do to make a servlet for one subdomain only?

Thanks,
b.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://WWW.ADVENTUREFORUM.NET - Forum on World Travel and Adventure -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://WWW.ADVENTUREFORUM.NET/worldfacts
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://WWW.ADVENTUREFORUM.NET/worldnews
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.