I have a problem with Apache 1.3.12 and Tomcat 4.1.12 on a Linux RedHat 7.0.
I tried both mod_jk and mod_webapp to let Tomcat and Apache talk together, now I am
using mod_jk but I experienced this problem with both connectors.
The problem is this:
if I give an Alias directive to Apache, for a directory that is a Tomcat application,
I get always an Error 403 - Forbidden from Apache. If I do not give the alias
directive, every file is served by Tomcat and everything works, but Tomcat does not
serve files that reside on a directory that is a symlink (not on my installation,
perhaps thare is some directive to give to Tomcat).
I tried the JkAutoAlias, I tried to make an alias for the directory that is a symlink,
but nothing worked.
Here are my httpd.conf and mod_jk.conf files:
********* START httpd.conf **********
....
....
<IfDefine HAVE_JK>
LoadModule jk_module modules/mod_jk.so
AddModule mod_jk.c
Include /var/tomcat4/conf/mod_jk.conf
</IfDefine>
********* END httpd.conf **********
********* START mod_jk.conf **********
###################################################################
# The following line instructs Apache to load the jk module
#
#LoadModule jk_module modules/mod_jk.dll
###################################################################
JkWorkersFile /var/tomcat4/conf/workers.properties
JkLogFile /var/tomcat4/logs/mod_jk.log
###################################################################
# Log level to be used by mod_jk
#
#JkLogLevel Information
JkLogLevel error
###################################################################
# context mounts for Tomcat
#
#JkAutoAlias /var/tomcat4/webapps
#JkMount /*.jsp ajp13
#JkMount /* ajp13
JkMount /mytest/* ajp13
JkMount /mytest/*.jsp ajp13
Alias /bignami "/var/tomcat4/webapps/mytest"
<Directory "/var/tomcat4/webapps/mytest">
AllowOverride None
Options Indexes FollowSymLinks
</Directory>
<Location "/mytest">
allow from all
</Location>
<Location "/mytest/Connections/">
deny from all
</Location>
********* END mod_jk.conf **********
Thanks,
Marco.