Updating the httpd.conf file is a required task when you set up load balancing.
Follow these steps:
Listen 89 LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties
<VirtualHost *:89> ServerName load balancer host name
JkMountFile conf/uriworkermap.properties JkLogFile logs/mod_jk.log JkLogLevel debug </VirtualHost>
JkLogFile logs/mod_jk.log JkLogLevel debug
JkLogFile "|bin/rotatelogs.exe logs/mod_jk.log.%Y-%m-%d-%H_%M_%S 10M" JkLogLevel emerg
This action modifies the mod_jk.log file on your production server to record only critical errors and to enable log automatic rollover when its file size reaches 10 MB.
For example, suppose you have defined a virtual host at port 89, as follows:
<VirtualHost *:89>
In that case, add the Listen directive for this port in the httpd.conf file, for example:
Listen 89
Note: The commonly used port is 89.
This specification enables the Apache HTTP Server to listen on this port and accept incoming requests.
You have updated the httpd.conf file.
|
Copyright © 2013 CA.
All rights reserved.
|
|