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 jiying@126.com

    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



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值