一篇蛮老的mod_jk的配置范例

########## Auto generated . Wed Jul 31 12:53:26 EDT 2002##########

<IfModule !mod_jk.c>
LoadModule jk_module libexec/mod_jk.so
</IfModule>

JkWorkersFile "/usr/local/jakarta-tomcat-4.0.4/conf/jk/workers.properties"
JkLogFile "/usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log"

JkLogLevel emerg



<VirtualHost xxx.yyy.com>
ServerName xxx.yyy.com

#################### xxx.yyy.com:/manager ####################

# Static files
Alias /manager "/usr/local/jakarta-tomcat-4.0.4/webapps/manager"

<Directory "/usr/local/jakarta-tomcat-4.0.4/webapps/manager">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>


# Deny direct access to WEB-INF and META-INF
#
<Location "/manager/WEB-INF/*">
AllowOverride None
deny from all
</Location>

<Location "/manager/META-INF/*">
AllowOverride None
deny from all
</Location>

JkMount /manager/* ajp13
JkMount /manager/*.jsp ajp13
JkMount /manager/servlet/* ajp13

#################### xxx.yyy.com:/examples ####################

# Static files
Alias /examples "/usr/local/jakarta-tomcat-4.0.4/webapps/examples"

<Directory "/usr/local/jakarta-tomcat-4.0.4/webapps/examples">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>


# Deny direct access to WEB-INF and META-INF
#
<Location "/examples/WEB-INF/*">
AllowOverride None
deny from all
</Location>

<Location "/examples/META-INF/*">
AllowOverride None
deny from all
</Location>

JkMount /examples/jsp/security/protected/j_security_check ajp13
JkMount /examples/CompressionTest ajp13
JkMount /examples/SendMailServlet ajp13
JkMount /examples/servletToJsp ajp13
JkMount /examples/snoop ajp13
JkMount /examples/*.jsp ajp13
JkMount /examples/servlet/* ajp13

#################### xxx.yyy.com:/tomcat-docs ####################

# Static files
Alias /tomcat-docs "/usr/local/jakarta-tomcat-4.0.4/webapps/tomcat-docs"

<Directory "/usr/local/jakarta-tomcat-4.0.4/webapps/tomcat-docs">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>


# Deny direct access to WEB-INF and META-INF
#
<Location "/tomcat-docs/WEB-INF/*">
AllowOverride None
deny from all
</Location>

<Location "/tomcat-docs/META-INF/*">
AllowOverride None
deny from all
</Location>

JkMount /tomcat-docs/*.jsp ajp13
JkMount /tomcat-docs/servlet/* ajp13

#################### xxx.yyy.com:/webdav ####################

# Static files
Alias /webdav "/usr/local/jakarta-tomcat-4.0.4/webapps/webdav"

<Directory "/usr/local/jakarta-tomcat-4.0.4/webapps/webdav">
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
</Directory>


# Deny direct access to WEB-INF and META-INF
#
<Location "/webdav/WEB-INF/*">
AllowOverride None
deny from all
</Location>

<Location "/webdav/META-INF/*">
AllowOverride None
deny from all
</Location>

JkMount /webdav/*.jsp ajp13
JkMount /webdav/servlet/* ajp13
</VirtualHost>

另外可以参考tomcat官方文档:
http://tomcat.apache.org/tomcat-4.1-doc/config/jk.html

你可能感兴趣的:(职场,休闲)