You should define your ROOT context in the server.xml as below:

<Context path="" docBase="webapps/corporatesite" crossContext="true" debug
="0" reloadable="true"  trusted="false" >
</Context>

This way you can access your webapp with the URL: http://www.domain.com/

RS





"Soefara Redzuan" <[EMAIL PROTECTED]> on 04/08/2002 02:08:00 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:

Subject:  Tomcat/Apache trying to hide /webapp/ from URL

Sorry, I know Tomcat/Apache has been discussed endlessly but this problem
is
driving me around the bend.

We have Tomcat(3.2.3) running fine. We have several webapps running on it
with no problem, including our main corporate website which is accessed
directly via Tomcat at http://www.domain.com:8080/corporatesite
(ie. the webapp is <tomcat_home>/webapps/corporatesite)

We have Apache configured to be in front of Tomcat with mod_jk which simply

means that we need to insert this line into Apache's httpd.conf and it
works
fine.

Include /usr/local/jakarta/tomcat/conf/mod_jk.conf-auto

However, there are 2 problems with this

1. The URL to reach the site is http://www.domain.com/corporatesite but
we'd
really like it to be http://www.domain.com

2. I think that Tomcat still has to serve up all of the images and static
content which are part of the webapp. (ie. they're stored in subdirectories

of <tomcat_home>/webapps/corporatesite)

I thought that I could solve both of these problems using this ProxyPass
but
that didn't work as expected. There must be an easy way to solve this.

I was also surprised that setting Apache's httpd.cont to include
DocumentRoot /usr/local/jakarta/tomcat/webapps/corporatesite
did not help at all.

Any and all help is truly welcome.  Thank you so much, Soefara.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>









--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to