PDA

View Full Version : DocumentRoot with Tomcat problem



thisObject
29th April 2006, 11:25 PM
Hello,
I looked around and could not find a solution to my problem. If anyone can suggest I'd apprecite it.

I set up Tomcat to work with Apache (httpd) using mod_jk2

I have a webapp (WEB) in /home/my.login/jakarta-tomcat-5.5.9/webapps/
that I want to access like this http://www.mydomain.net
start file of a webapp is index.jsp which is in WEB/AAA

http.conf:
DocumentRoot DocumentRoot /home/my.login/jakarta-tomcat-5.5.9/webapps/WEB/AAA
displays default tomcat page - index.jsp which is located in /home/my.login/jakarta-tomcat-5.5.9/webapps/ROOT
In this case I can access my app like this http://www.mydomain.net/WEB/AAA
and see my app

if I specify:
DocumentRoot DocumentRoot /home/my.login/public_html it serves whatever is in that page.

Also, I have an alias like this:
Alias /WEB /home/my.login/jakarta-tomcat-5.5.9/webapps/WEB

What do I need to do to access my app directly by http://www.myDomain.net

Thanks