Looks like everything is configured correctly, _but_ when i navgate to
execute a jsp page within the JkMount path (httpd.conf), the apache
webserver displays it as html/plain text, so it looks like apache is not
handing off to mod_jk and the tomcat connector for some reason...
http://<hostname>/examples <permission denied>
http://<hostname>/examples/jsp page i cannot execute any of the jsp pages,
it just shows the script as text.
Here is my config:
in the /usr/local/tomcat/conf/server.xml:
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
-->
so when tomcat is started on port 8080 , the connector will start on port
8009
the /etc/httpd/conf/httpd.conf file looks like this (regarding Tomcat):
LoadModule jk_module modules/mod_jk.so
AddModule mod_jk.c
this used to complain, but i troubleshot a problem where i needed to put
mod_jk.so before mod_dir.so
##at the end of httpd.conf:
JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkLogFile /var/log/mod_jk.log
JkLogLevel debug
Alias /examples /usr/local/tomcat/webapps/examples
JkMount /examples/servlet/* testWorker
JkMount /examples/*.jsp testWorker
#JkMount /examples/*.jsp testWorker
<location "/examples/web-inf/">
AllowOverride None
deny from all
</location>
and the workers.properties file:
worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13
when i start up tomcat the /usr/local/tomcat/logs/catalina.out shows:
Apache Tomcat/4.1.24
Jul 3, 2003 10:20:24 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Jul 3, 2003 10:20:24 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jul 3, 2003 10:20:24 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/71
config=/usr/local/tomcat/conf/jk2.properties
/var/log/mod_jk.log doesn't make any complaints either.
well any ideas about appreciated,
/Patrice