In $TOMCAT_HOME/conf/server.xml, add or uncomment the following:
<!-- Define an AJP 1.3 Connector on port 8009 -->
<connector port="8009" protocol="AJP/1.3" redirectport="8443" uriencoding="UTF-8"></connector>
In $APACHE_HOME/conf create the file worker.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
Download the mod_jk module
https://tomcat.apache.org/download-connectors.cgi
Copy the module "mod_jk.so" in $APACHE_HOME/modules
Edit $APACHE_HOME/conf/httpd.conf and add the mod_jk module
LoadModule jk_module modules/mod_jk.so
<IfModule jk_module>
JkWorkersFile conf/worker.properties
JkLogFile logs/mod_jk.log
JkLogStampFormat "[%b %d %Y - %H:%M:%S] "
JkRequestLogFormat "%w %V %T"
JkLogLevel info
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkMount /* ajp13
#If you want run a wordpress, uncomment the 2 lines and try http://localhost/wordpress
#Alias /wordpress "c:/Apache24/htdocs/wordpress"
#JkUnMount /wordpress/* ajp13
</IfModule>
WHAT'S NEW?
Loading...
0 comments:
Post a Comment