File jk.conf of Package apache2-mod_jk.9478

# 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

    # Log level to be used by mod_jk
    JkLogLevel error

    # The following line makes apache aware of the location of
    # the /servlets-examples context
    Alias /servlets-examples "/srv/tomcat/webapps/examples/servlets"
    <Directory "/srv/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 /jsp-examples context
    Alias /jsp-examples "/srv/tomcat/webapps/examples/jsp"
    <Directory "/srv/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 /servlets-examples/servlet/* ajp13
    JkMount /jsp-examples/*.jsp ajp13

    # The following line prohibits users from directly accessing WEB-INF
    <Location "/jsp-examples/WEB-INF/">
	AllowOverride None
	<IfModule !mod_access_compat.c>
            Require all denied
	</IfModule>
	<IfModule mod_access_compat.c>
	    deny from all
	</IfModule>
    </Location>
    <Location "/servlets-examples/WEB-INF/">
	AllowOverride None
	<IfModule !mod_access_compat.c>
            Require all denied
	</IfModule>
	<IfModule mod_access_compat.c>
	    deny from all
	</IfModule>
    </Location>


</IfModule>