Originally posted by portal_man
View Post
first install the libapache2_mod_jk2 package:
apt-get install libapache2-mod-jk
if you have install the libapache2_mod_jk2, please remove it:
apt-get remove --purge libapache2_mod_jk2
then edit this file: /etc/apache2/conf.d/ox.conf
# Where to find workers.properties. We will create this file later in the tutorial.
#JkWorkersFile /etc/apache2/workers.properties
JkWorkersFile /etc/libapache2-mod-jk/workers.properties
# Where to put jk logs.
JkLogFile /var/log/apache2/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel error
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"
# This points to our servlets we install later
JkMount /ajax/* ajp13_worker
JkMount /servlet/* ajp13_worker
final edit this file : /etc/libapache2-mod-jk/workers.properties
#workers.tomcat_home=/usr/share/tomcat4
#workers.java_home should config according your java_home path
workers.java_home=/usr/lib/jvm/java-1.5.0-sun
ps=/
worker.list=ajp13_worker
worker.ajp13_worker.port=8009
worker.ajp13_worker.host=localhost
worker.ajp13_worker.type=ajp13
worker.ajp13_worker.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13_worker
final final restart your apache2
/etc/init.d/apache2 restart
now , you mod_jk for apache2 is ok.
Notice: workers.java_home according your java_home patch config
Leave a comment: