mod jk

mod_jk.conf

----------------------------------------------------------------

 

LoadModule jk_module modules/mod_jk.so

JkWorkersFile D:/DEVTOOLS/workers.properties

JkLogFile logs/mod_jk.log

JkLogLevel info

JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"

JkRequestLogFormat "%w %V %T"

HostnameLookups Off

--------------------------------------------------------------------

http_vhost.conf

 

<VirtualHost *:80>

    ServerAdmin [email protected]

    ServerName ajp.exshop.com

DocumentRoot "D:/ftphome/ajp"

<Directory "D:/ftphome/ajp">

DirectoryIndex index.html index.php

Order allow,deny

Allow from all

</Directory>

JkMount /*.jsp loadbalancer

JkMount /shopxx/*.action loadbalancer

HostnameLookups Off

    ErrorLog "logs/ajp-test-error.log"

    CustomLog "logs/ajp-test-access.log" common

</VirtualHost>

-----------------------------------------------------------------------------
workers.properties
worker.list=loadbalancer

worker.test.port=8009
worker.test.host=localhost
worker.test.type=ajp13
worker.test.lbfactor=0
worker.test.socket_keepalive=1
worker.test.socket_timeout=0
worker.test.retries=3

worker.loadbalancer.type=lb
worker.retries=3
worker.loadbalancer.balance_workers=test
worker.loadbalancer.sticky_session=true
worker.loadbalancer.sticky_session_force=true



你可能感兴趣的:(mod jk)