Hi,
I am trying to configure mod_jk for the first time. installed jkd, tomcat and mod_jk but still unable to complete it
vps info:
Code:
Server version: Apache/2.2.3
apache-tomcat-6.0.20
jdk-6u14-linux-i586
centOS Enterprise Linux 5x
lxAdmin
/var/log/httpd/mod_jk.log
Code:
[Wed Jun 17 03:57:06 2009] [14515:4152821456] [info] init_jk::mod_jk.c (3183): mod_jk/1.2.28 initialized
[Wed Jun 17 03:57:06 2009] [14516:4152821456] [info] init_jk::mod_jk.c (3183): mod_jk/1.2.28 initialized
/var/log/httpd/error.log
Code:
[Wed Jun 17 03:57:06 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)[Wed Jun 17 03:57:06 2009] [warn] No JkShmFile defined in httpd.conf. Using default /etc/httpd/logs/jk-runtime-status
[Wed Jun 17 03:57:06 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Jun 17 03:57:06 2009] [notice] Digest: done
[Wed Jun 17 03:57:06 2009] [warn] No JkShmFile defined in
httpd.conf. Using default /etc/httpd/logs/jk-runtime-status
[Wed Jun 17 03:57:06 2009] [notice]
Apache/2.2.3 (CentOS) configured -- resuming normal operations
/usr/lib/apache-tomcat/logs
Code:
Jun 17, 2009 10:59:39 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:
/usr/java/jdk1.6.0_14/jre/lib/i386/client:/usr/java/jdk1.6.0_14/jre/lib/i386:/usr/java/jdk1.6.0_14/jre/
../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Jun 17, 2009 10:59:39 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 17, 2009 10:59:39 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 508 ms
Jun 17, 2009 10:59:39 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 17, 2009 10:59:39 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Jun 17, 2009 10:59:40 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 17, 2009 10:59:40 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 17, 2009 10:59:40 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/21 config=null
Jun 17, 2009 10:59:40 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 599 ms
/usr/lib/apache-tomcat/conf/server.xml
Code:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<!--
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
vi /etc/httpd/conf/workers.properties
Code:
workers.tomcat_home=/usr/lib/apache-tomcat
workers.java_home=/usr/java/default
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
inserted the following at bottom of /etc/httpd/conf/httpd.conf
Code:
LoadModule jk_module /usr/lib/httpd/modules/mod_jk.so
# Where to find workers.properties
JkWorkersFile /etc/httpd/conf/workers.properties
# Where to put jk logs
JkLogFile /var/log/httpd/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 / jsp-examples to worker named worker1
JkMount /jsp-examples ajp13
# Send JSPs for context /jsp-examples/* to worker named worker1
JkMount /jsp-examples/* ajp13
Kindly help me
Thanks & best regards