CCL Home Page
Up Directory CCL node8.html
/etc/apache/mod_jk/tomcat-auto 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:

  • Comment out ``LoadModule jk_module libexec/mod_jk.so''

    • You already have it in httpd.conf, and that path is wrong anyway.
  • Take a look at the auto configuration sections near the bottom of the file. There should be two by default ``/tomcat-examples'' and ``/examples''. Use these as the models for adding new contexts, thought you might want to comment them out.
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
Modified: Sun May 27 22:08:42 2001 GMT
Page accessed 385 times since Tue Mar 15 01:00:29 2005 GMT