33 lines
1.2 KiB
Text
33 lines
1.2 KiB
Text
===========================================================================
|
|
$NetBSD: MESSAGE,v 1.2 2012/10/21 21:33:25 erh Exp $
|
|
|
|
In order to use this module in your Apache installation, you need to
|
|
add the following to your httpd.conf file:
|
|
|
|
LoadModule jk_module lib/httpd/mod_jk.so
|
|
|
|
You will also need a running Java Servlet engine, e.g. www/apache-tomcat6
|
|
You will need to consult the servlet engine documentation to finish
|
|
configuring Apache before you can use mod_jk.so.
|
|
Possible settings you can add to your httpd.conf to use Apache Tomcat are:
|
|
(according to http://tomcat.apache.org/connectors-doc/generic_howto/quick.html)
|
|
|
|
<IfModule mod_jk.c>
|
|
JkWorkersFile ${PREFIX}/tomcat/conf/workers.properties
|
|
JkLogFile /var/log/httpd/mod_jk.log
|
|
JkShmFile /var/log/httpd/mod_jk.shm
|
|
JkLogLevel info
|
|
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
|
|
JkMount /examples/* worker1
|
|
</IfModule>
|
|
|
|
With a minimum workers.properties file:
|
|
|
|
# Define 1 real worker using ajp13
|
|
worker.list=worker1
|
|
# Set properties for worker1 (ajp13)
|
|
worker.worker1.type=ajp13
|
|
worker.worker1.host=localhost
|
|
worker.worker1.port=8009
|
|
|
|
===========================================================================
|