I've got several webapps under tomcat/webapps and one virtualhost. Let's say I've got app1 and app1/image.gif.
If I call: http://localhost/app1/image.gif Apache will look for: /usr/local/bin/tomcat/webapps/app1/image.gif
and everything is perfect. Then I've got the root-app and ROOT/image.gif.
If I call: http://localhost/image.gif Apache will look for: /usr/local/bin/tomcat/webapps/image.gif
and give a 404 because my gif actually is in /usr/local/bin/tomcat/webapps/ROOT/image.gif
Therefore I need something to redirect requests for the root app to /usr/local/bin/tomcat/webapps/ROOT.
- Johannes
On Mittwoch, Mai 28, 2003, at 07:20 Uhr, John Turner wrote:
You're saying that if you make your DocumentRoot "webapps/ROOT" that Apache doesn't serve content in that directory? What error message does Apache display?
The ROOT webapp is "special" as far as Tomcat is concerned.
John
On Wed, 28 May 2003 17:28:57 +0200, Johannes Lietz <[EMAIL PROTECTED]> wrote:
This is a minor problem, but I have no idea yet:
In httpd.conf I configured VirtualHosts with a DocumentRoot like this:
<VirtualHost *> ... DocumentRoot /usr/local/bin/tomcat/webapps ... <Location "/*.jsp"> JkUriSet worker ajp13:localhost:8009 </Location> <Location ~ /*/servlet/*> JkUriSet worker ajp13:localhost:8009 </Location> ... </VirtualHost>
This makes Apache serve all static content, and it works for all webapps but the ROOT webapp because Apache will not look for static content in /usr/local/bin/tomcat/webapps/ROOT.
Who knows how to do this properly?
Thanks, Johannes
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]