Friday, May 13, 2005

mod_jk installation from source code under Mac OS X

[~/tmp/jakarta-tomcat-connectors-1.2.12-src/jk/native]$./configure --with-apxs=/usr/local/apache2/bin/apxs
cd apache-2.0
make -f Makefile.apxs
make -f Makefile.apxs install

cp workers.properties from jk/conf directory to apache/conf directory and make modification
make modification

add to http.conf

# Load mod_jk module
LoadModule jk_module modules/mod_jk.so

# Where to find workers.properties
JkWorkersFile conf/workers.properties
# Where to put jk logs
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"
# Send servlet for context /examples to worker named worker1
JkMount /*/servlet/* ajp13
# Send JSPs for context /examples to worker named worker1
JkMount /*.jsp ajp13

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home