RE: Apache / Tomcat Config?
Not sure what you are asking here...as far as I know, putting your webapp as the ROOT is exactly what you should do, as ROOT is the default webapp. What is it about putting your webapp under the ROOT directory that you don't like? Are you asking for a way to have it be the root webapp, but not have to actually put your application's files under the ROOT directory? John -Original Message- From: [EMAIL PROTECTED] [mailto:dmaloy;provide.net] Sent: Sunday, October 27, 2002 1:18 PM To: [EMAIL PROTECTED] Subject: Apache / Tomcat Config? 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
Re: Apache / Tomcat Config?
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