You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Anthony Milbourne <an...@becta.org.uk> on 2002/09/16 15:58:56 UTC

virtualhosts and context paths.

Hi

Sorry this is a bit of a repost but I didn't get a response last time :-(

I am using Tomcat 4.0.4 and Apache 1.3.26 talking over mod_jk (4.0.4) on
Solaris 8.

I have been trying to map a webapp to the root URL of a virtualhost in
Apache.
I tried using a command (in server.xml) such as:

<Context path="" docBase="mywebapp" />

But this didnt generate a corresponding entry in the autogenerated
mod_jk.conf.  The standard entry mapping mywebapp to /mywebapp
was there but nothing else.

As an experiment I tried:

<Context path="/" docBase="mywebapp" />

which did generate an extra mapping in mod_jk.conf.  That mapping
unfortunately has an extra / in front of all the URL paths.  So
/mywebapp/index.jsp is now mapped to //index.jsp.

Any ideas why Tomcat is ignoring the context with the empty path parameter?
I would really appreciate it if someone could tell me either, "it works fine
for me" or "I get that too".

Thanks,

		Anthony.



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>