next up previous contents
Next: /etc/tomcat/server.xml Up: Configuration Previous: /etc/apache/httpd.conf   Contents

/etc/apache/mod_jk/tomcat-auto

This is an automatically generated file, generated when you start Tomcat2. You will probably want to copy it to another file, such as ``/etc/apache/mod_jk/tomcat.conf'' and remember to change the ``Include'' line in httpd.conf to reflect this.

When you do copy it, you will probably want to make the following changes inside it:

Here is a sample context from ``tomcat-auto'':

Alias /tomcat-examples "/usr/share/tomcat/webapps/tomcat-examples"

<Directory "/usr/share/tomcat/webapps/tomcat-examples">

  Options Indexes FollowSymLinks

</Directory>

JkMount /tomcat-examples/servlet/* ajp13

JkMount /tomcat-examples/*.jsp ajp13

# The following line prohibits users from directly accessing WEB-INF

<Location "/tomcat-examples/WEB-INF/">

  AllowOverride None

  deny from all

</Location>

# The following line prohibits users from directly accessing META-INF

<Location "/tomcat-examples/META-INF/">

  AllowOverride None

  deny from all

</Location>
As you can see, these are all Apache directives. If you are unsure of their meaning, please consult the documentation at http://www.apache.org/. JkMount is the mod_jk.so specific directive that identifies to mod_jk what requests should be redirected to Tomcat. ajp13 is the protocol that is used to make this request. ajp12 is an older protocol, that will be used in the examples, in the above I changed it to ajp13 and you should probably too.


next up previous contents
Next: /etc/tomcat/server.xml Up: Configuration Previous: /etc/apache/httpd.conf   Contents
2001-05-26