In server.xml, there's a commented out Context line that sets the path of URLS that have a path of "" to go to the ROOT directory. This is commented out because it isn't needed: ROOT, as you say, is the default. But if you uncomment that and change docBase="ROOT" to docBase="mysite", you should get what you want. If "mysite" is not in the webapps directory, you can give the full path (or a path relative to "webapps"), and tomcat should automatically use whatever directory you put there.

Hope that helps.

Steve Gollery
[EMAIL PROTECTED]


[EMAIL PROTECTED] wrote:

Can someone tell me how to configure apache 2.x with tomcat
4.x so that when someone goes to my site "www.mysite.com"
it automatically looks under the tomcat webapps directory
for a subdirectory called "mysite" to load the index page?

I can't get apache (or tomcat?) to work that way unless I
put my webapp under the ROOT directory.

Thanks.


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to