Hello All,
I have searched the archives but have been unable to find a solution
to my problem.
I am integrating Apache 2.0.52 with Tomcat 5.0.28 using mod_jk 1.2.8
(compiled from source). My client wants to continue using Apache as
the web server due to security and ease of configuration issues, so
using Tomcat as the web server is *not* an option.
The configuration appears to be good, and I can load a page such as
loading {server}/servelets-examples. However I get "500 Interal
Server Error" whenever I try to launch any of the jsp files. There is
no indication of error in the CATALINA/logs files. The only
indication in the Apache log files (error_log) occurs when attempting
to load the initial index.jsp page of a context:
[Tue Mar 15 16:10:23 2005] [error] [client xxx.xxx.xxx.xxx] client
denied by server configuration: index.jsp
I have checked my httpd.conf file and the
CATALINA/conf/auto/mod_jk.conf file but can find no reason why access
to the *jsp is denied.
I can include full versions of my various files, but for the sake of
space I'm only going to include snippets here:
[Apache httpd.conf]
LoadModule jk_module modules/mod_jk.so
...
Include /usr/local/tomcat/conf/auto/mod_jk.conf
[Tomcat conf/auto/mod_jk.conf]
JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
...
#################### machine2.sample.com:/servlets-examples ####################
# Static files
Alias /servlets-examples
"/usr/local/jakarta-tomcat-5.0.28/webapps/servlets-examples"
<Directory "/usr/local/jakarta-tomcat-5.0.28/webapps/servlets-examples">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/servlets-examples/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/servlets-examples/META-INF/*">
AllowOverride None
deny from all
</Location>
JkMount /servlets-examples/jsp/security/protected/j_security_check ajp13
JkMount /servlets-examples/servlet/HelloWorldExample ajp13
JkMount /servlets-examples/servlet/SessionExample ajp13
JkMount /servlets-examples/servlet/RequestHeaderExample ajp13
JkMount /servlets-examples/servlet/RequestParamExample ajp13
JkMount /servlets-examples/servlet/CookieExample ajp13
JkMount /servlets-examples/*.jspx ajp13
JkMount /servlets-examples/CompressionTest ajp13
JkMount /servlets-examples/*.jsp ajp13
JkMount /servlets-examples/servlet/RequestInfoExample/* ajp13
[Tomcat server.xml]
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Listener className="org.apache.jk.config.ApacheConfig"
modJk="/usr/local/apache/modules/mod_jk.so"
/>
...
<Host name="machine2.example.com" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Listener className="org.apache.jk.config.ApacheConfig"
append="true" forwardAll="false"
modJk="/usr/local/apache/modules/mod_jk.so"
/>
Help greatly appreciated.
Tony
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]