httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander F. Hartner" <>
Subject [users@httpd] Virtual Host, Locations and Mod_JK2
Date Mon, 19 Apr 2004 05:20:38 GMT
I host several websites on my apache2 (2.0.49) using virtual hosts. One 
of the hosts I would like to forward fully to a web application 
deployed on tomat via Mod_JK. What I have done is the following:

Installed the webapplication in tomcat's root "/" context

Configured a worker in

Configured a virutal host on apache2

         DocumentRoot /home/www/
         ServerAlias * 
         ErrorLog logs/
         CustomLog logs/ combined
         <Location "/">
           JkUriSet worker ajp13:localhost:28009

Everything is working, except the Location directive spans all my other 
virtual hosts as well. A request to any of the virtual hosts is 
redirected to /index.jsp, which I guess comes from my web application's 
deployment descriptor. Direct requests to are 
still processed by apache correctly, but general request to are redirected to

Ugly solution:
What I have done in the mean time is to either
-create index.jsp files which are typically copies of the index.html
-modify the webapplication to redirect to index.html

I should not have to do this as the location should only work for the 
virtual host in which it is configured.

Any suggestions welcome


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message