http://server.ccl.net/pub/chemistry/software/UNIX/apache/debian-tomcat/node8.shtml |
CCL node8.html | |
Next: /etc/tomcat/server.xml Up: Configuration Previous: /etc/apache/httpd.conf   Contents /etc/apache/mod_jk/tomcat-autoThis 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:
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: /etc/tomcat/server.xml Up: Configuration Previous: /etc/apache/httpd.conf   Contents 2001-05-26 |
[ CCL Home Page ]
[ debian-tomcat ]
[ Raw Version of this page ]
Modified: Sun May 27 22:08:42 2001 GMT |
Page accessed 385 times since Tue Mar 15 01:00:29 2005 GMT |