I use mod_jk (ajp) to connect Apache and Tomcat. I made changes to the Apache httpd.conf file (you probably won't need the same set and there are others):
Code:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "/usr/local/apache2/conf/extra/workers.properties"
JkLogFile "/var/log/httpd/mod_jk.log"
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T
The workers.properties file contains this:
Code:
worker.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
worker.ajp13.lbfactor=50
worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.socket_timeout=300
To direct URLs I use this in the virtual hosts section:
Code:
JkMount /timesheets ajp13
JkMount /timesheets/* ajp13
JkMount /timesheetadmin ajp13
JkMount /timesheetadmin/* ajp13
JkMount /testingdb ajp13
JkMount /testingdb/* ajp13
This info is from an old backup (I'm not at work at the moment) and I can't recall why I have the top directory as well as the wildcard, but google may help.