File jk.conf of Package apache2-mod_jk.31986
# simple configuration for apache (for AJP connector, modul mod_jk.so)
<IfModule mod_jk.c>
JkWorkersFile /etc/tomcat/workers.properties
JkLogFile /var/log/tomcat/mod_jk.log
JkShmFile /var/log/tomcat/jk-runtime-status
# Log level to be used by mod_jk
JkLogLevel error
# JkLogLevel debug
# The following line makes apache aware of the location of
# the /examples/servlets context
#
# WARNING! Contrary to the normal freedom in the choice of apache2 Aliases
# it is mandatory here that the Alias is formed from the exact
# tomcat path with the tomcat DocumentRoot prefix stripped!
#
Alias /examples/servlets "/usr/share/tomcat/tomcat-webapps/examples/servlets"
<Directory "/usr/share/tomcat/tomcat-webapps/examples/servlets">
Options Indexes FollowSymLinks
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
<IfModule mod_access_compat.c>
allow from all
</IfModule>
</Directory>
# The following line makes apache aware of the location of
# the /examples/jsp context
Alias /examples/jsp "/usr/share/tomcat/tomcat-webapps/examples/jsp"
<Directory "/usr/share/tomcat/tomcat-webapps/examples/jsp">
Options Indexes FollowSymLinks
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
<IfModule mod_access_compat.c>
allow from all
</IfModule>
</Directory>
# The following line mounts all JSP files and the /servlet/ uri to tomcat
JkMount /examples/servlets/servlet/* ajp13
JkMount /examples/jsp/*.jsp ajp13
# The following line prohibits users from directly accessing WEB-INF
<Location "/examples/jsp/WEB-INF/">
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
deny from all
</IfModule>
</Location>
<Location "/examples/servlets/WEB-INF/">
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
deny from all
</IfModule>
</Location>
</IfModule>