Created
June 13, 2013 08:11
-
-
Save mikeda/5772031 to your computer and use it in GitHub Desktop.
mod_proxy_balancerでアクセスされるパスによって無理やりtimeout値を変更する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Proxy balancer://3sec/ > | |
| BalancerMember http://192.168.1.1 loadfactor=10 timeout=3 | |
| BalancerMember http://192.168.1.2 loadfactor=10 timeout=3 | |
| </Proxy> | |
| <Proxy balancer://5sec/ > | |
| BalancerMember http://192.168.1.1 loadfactor=10 timeout=5 | |
| BalancerMember http://192.168.1.2 loadfactor=10 timeout=5 | |
| </Proxy> | |
| RewriteEngine On | |
| RewriteRule ^(/3sec/.*) balancer://3sec/$1 [P] | |
| RewriteRule ^(/5sec/.*) balancer://5sec/$1 [P] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment