[KLUG Members] Linking Tomcat To Apache via mod_jk
Adam Tauno Williams
adam at morrison-ind.com
Fri Jul 1 09:36:47 EDT 2005
I have an Apache2 server that also runs Jakarta Tomcat 5. The Tomcat
instance is used to deploy Open Reports and Davenport.
To access the Tomcat applications one normally uses
http://noor;8080/openreports, etc....
To access the native apache stuff (PHP mostly) one uses
http://noor/intranet/....
So I installed the mod_jk connector so that tomcat can be accessed via
Apache and thus without the wierd URL. This worked perfectly for the
Tomcat demo applications, I could go to http://noor/jsp-examples,
etc... and go right into Tomcat. The entries appears in the apache logs
(yes!) and everything stayed on port 80 (very cool).
But when I try to modify the entries to point /openreports or /reports
at my Tomcat application all I get is an index of files, like Apache is
accessing the directory itself and not using the connector.
By entries look like -
Alias /openreports "/srv/www/tomcat/base/webapps/openreports"
<Directory "/srv/www/tomcat/base/webapps/openreports">
Options Indexes FollowSymLinks
allow from all
</Directory>
JkMount /openreports/*.jsp ajp13
<Location "/openreports/WEB-INF/">
AllowOverride None
deny from all
</Location>
And the same for davenport.
More information about the Members
mailing list