hi,
I've installed Apache 2.0.64 (latest release for windows) and
Tomcat 7.0.32.
All incoming HTTP requests should be forwarded to Tomcat. But I don't manage having it working , nothing is forwarded to Tomcat :-(
Apache installation : C:\Apache-Group\Apache2\...
Tomcat installation : C:\apache-tomcat-7.0.32\...
Web Appl installation : C:\apache-tomcat-7.0.32\webapps\stockdomain
Changes for Apache2:
1. modifying C:\Apache-Group\Apache2\conf\httpd.conf
uncomment : LoadModule proxy_module modules/mod_proxy.so
add : include C:/apache-tomcat-7.0.32/conf/mod_jk.conf
2. copy mod_jk.so (from tomcat-connectors-1.2.37-windows-i386-httpd-2.0.x.zip) to C:\Apache-Group\Apache2\modules
Changes for Tomcat:
1. Adding file C:\apache-tomcat-7.0.32\confworkers.properties
# Define 1 real worker named ajp13
worker.list=ajp13
# Set properties for worker named ajp13 to use ajp13 protocol,
# and run on port 8009
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
2. Adding file C:\apache-tomcat-7.0.32\conf\mod_jk.conf
# Load mod_jk module
# Update this path to match your modules location
LoadModule jk_module modules/mod_jk.so
# Where to find workers.properties
# Update this path to match your conf directory location
JkWorkersFile c:/apache-tomcat-7.0.32/conf/workers.properties
# Where to put jk logs
# Update this path to match your logs directory location
JkLogFile c:/apache-tomcat-7.0.32/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 everything for context /ws to worker ajp13
JkMount /stockdomain ajp13
JkMount /stockdomain/* ajp13
When typing www.stock-domain.com , I receive the Apache welcome page.
Thanks for help,
Frank