In corporate environment, there might be a requirement that the system don't allow the end user direct assess to the application server (Tomcat server). They want user assess to web server (Apache Web Server) and the web server redirect the traffic to application server. Hence, the configuration below is to serve the purpose.
To configure the mod_jk in Apache Web Server (2.4), below are the assumption
1. Use Apache Web Server 2.4
2. Apache home folder is c:\Apache24
3. Place mod_jk.so, worker.properties and in c:\Apache24\conf folder
# Load mod_jk for communicating with Tomcat
LoadModule jk_module "C:/Apache24/conf/mod_jk.so"
# Where to find workers.properties
# Where to put jk logs
# Set the jk log level [debug/error/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"
Step 2 - Add in the workers.properties to c:\Apache24\conf with the setting as shown below
Step 3 - If you configure virtual host, add the line below to each of the virtual host configuration in httpd-vhosts.conf. Otherwise, add into httpd.conf.
JkMount /myserverpath* worker