Java Mailing List Archive

http://www.junlu.com/

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

Virtual Host Config Question

Scott Purcell

2005-08-12


Hello,

I have configured two Hosts in my server.xml for two different sites.

The one I am having issues with is as follows:
<Host name="www.theuniquepear.com" appBase="webapps/unique/"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
    <Context path="" docBase="." />

It actuall works well, but I am running "struts" application and with struts it includes the "context" which is "unique".

So behind the scenes, (in the URL) I am getting something like this:

http://www.theuniquepear.com/welcome.do
which is really doing this
http://www.theuniquepear.com/unique/welcome.do

And things of course are getting screwed up.

Is there a way to get around that. I took off the /unique" under "appBase" but then it showed the default Tomcat page.

Anyone been here before?

Thanks
Scott


---------------------------------------------------------------------
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.