You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@hyperreal.org on 1999/11/29 23:17:24 UTC
cvs commit: jakarta-tomcat/src/etc tomcat.conf
costin 99/11/29 14:17:22
Modified: src/etc tomcat.conf
Log:
Cleaned tomcat.conf, working .jsp mapping.
Revision Changes Path
1.3 +20 -65 jakarta-tomcat/src/etc/tomcat.conf
Index: tomcat.conf
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/etc/tomcat.conf,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- tomcat.conf 1999/11/28 05:53:59 1.2
+++ tomcat.conf 1999/11/29 22:17:21 1.3
@@ -18,78 +18,33 @@
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
-
-
-# Log Level for this module
-# Syntax: ApJServLogLevel [debug|info|notice|warn|error|crit|alert|emerg]
-# Default: info (unless compiled w/ JSERV_DEBUG, in which case it's debug)
ApJServLogLevel notice
-# Default host on which Apache JServ is running
-# Syntax: ApJServDefaultHost [hostname]
-# Default: "localhost"
+### Change if you run tomcat on a different host
#ApJServDefaultHost localhost
-
-# Default port that Apache JServ is listening to
-# Syntax: ApJServDefaultPort [number]
-# Default: protocol-dependant (for ajpv12 protocol this is "8007")
ApJServDefaultPort 8009
-# Syntax: ApJServMount [name] [context]
-# Note: [name] is the name of the Apache URI path to mount jserv-url on
-# [context] is something like "protocol://host:port/context"
-# Example: "ApJServMount /servlets ajpv12://localhost:8007"
-# if user requests "http://host/servlets/myServlets/TestServlet"
-# the servlet "TestServlet" in zone "myServlets" will be requested
-# Example: "ApJServMount /servlets ajpv12://jserv.mydomain.com:15643/myServlets"
-# if user requests "http://host/servlets/TestServlet" the servlet
-# "TestServlet" in zone "myServlets" on host "jserv.mydomain.com" using
-# "ajpv12" protocol on port "15643" will be executed
-
-
-# Executes a servlet passing filename with proper extension in PATH_TRANSLATED
-# property of servlet request.
-# Syntax: ApJServAction [extension] [servlet-uri]
-# Defaults: NONE
-# Notes: This is used for external tools.
-#ApJServAction .gsp /servlets/com.bitmechanic.gsp.GspServlet
-#ApJServAction .jhtml /servlets/org.apache.servlet.ssi.SSI
-#ApJServAction .xml /servlets/org.apache.cocoon.Cocoon
-
-# XXX Need to change jsp to accept this syntax
-ApJServAction .jsp /servlet/jsp
-
-# For each context, map /ctx_path/servlet to /root
-ApJServMount /servlet /root
-ApJServMount /examples/servlet /root
-
-# XXX since deployment is not automated, we'll forward all requests in
-# a particular context to apache ( by default )
-# You can manually deploy all static files in apache's htdoc and remove this line
-ApJServMount /examples /root
-
-
-# Enable the Apache JServ status handler with the URL of
-# "http://servername/jserv/" (note the trailing slash!)
-# Change the "deny" directive to restrict access to this status page.
-<Location /jserv/>
- SetHandler jserv-status
-
- order deny,allow
- deny from all
- allow from localhost
-</Location>
-
-############################## W A R N I N G ##################################
-# Remember to disable or otherwise protect the execution of the Apache JServ #
-# Status Handler (see right above) on a production environment since this may #
-# give untrusted users the ability to obtain restricted information on your #
-# servlets and their initialization arguments such as JDBC passwords and #
-# other important information. The Apache JServ Status Handler should be #
-# accessible only by system administrators. #
-###############################################################################
+#################### 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>