You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Griggs, James" <gr...@netgenshopper.com> on 2000/01/04 20:53:49 UTC
tomcat and apache cooperation
I installed Apache 1.3.9, Tomcat 3.0, and Jserv on a Windows NT SP6 machine
with jdk 1.2.2.
Apache successfully redirects requests to tomcat using the /examples/ alias
and runs the servlet and jsp examples as expected.
I get a 500 error however when I place a .jsp file in the default htdocs
directory for apache and attempt to access it. No Error appears in the
server log.
I am assuming this is a problem in my http.conf file but have been
unsuccessful in finding the right combination to get this to work.
Here's the snippet at the end of the http.conf file ...pretty much straight
from the install guide:
######################################################
# Apache JServ Configuration
File #
######################################################
LoadModule jserv_module modules/ApacheModuleJServ.dll
<IfModule mod_jserv.c>
# Do not edit!
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
ApJServDefaultHost localhost
ApJServDefaultPort 8007
#################### All jsp files will go to tomcat ####################
ApJServMount default /root
AddType test/jsp .jsp
AddHandler jserv-servlet .jsp
############################## Context mapping - all requests go to tomcat
ApJServMount /examples /root
############################## Context mapping - you need to "deploy"
# ( copy or ln -s ) the context into htdocs
#
# ApJservMount /CONTEXT/servlet /root
# <Location /CONTEXT/WEB-INF/ >
# AllowOverride None
# deny from all
# </Location>
</IfModule>