I can't get Apache to recognize my servlet directory. I took the
tomcat.conf file and added a few lines to it, but it's not picking up the
new directory. What am I doing wrong?
######################################################################
# Apache-Tomcat Smart Context Redirection
#
######################################################################
LoadModule jserv_module modules/ApacheModuleJServ.dll
<IfModule mod_jserv.c>
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
ApJServDefaultHost localhost
ApJServDefaultPort 8007
#
# Mounting a single smart context:
#
# (1) Make Apache know about the context location.
Alias /examples c:/jakarta-tomcat/webapps/examples
I Added ------- Alias /myServlets c:/myServlets
# (2) Optional, customize Apache context service.
<Directory "c:/jakarta-tomcat/webapps/examples">
Options Indexes FollowSymLinks
# (2a) No directory indexing for the context root.
# Options -Indexes
# (2b) Set index.jsp to be the directory index file.
# DirectoryIndex index.jsp
</Directory>
# (3) Protect the WEB-INF directory from tampering.
<Location /examples/WEB-INF/>
AllowOverride None
deny from all
</Location>
# (4) Instructing Apache to send all the .jsp files under the
context to the
# jserv servlet handler.
<LocationMatch /examples/*.jsp>
SetHandler jserv-servlet
</LocationMatch>
# (5) Direct known servlet URLs to Tomcat.
ApJServMount /examples/servlet /examples /myServlets
# (6) Optional, direct servlet only contexts to Tomcat.
ApJServMount /servlet /ROOT
I Added ------- ApJServMount /myServlets /ROOT
</IfModule>
-Matt