Skip to content

Instantly share code, notes, and snippets.

@mikeda
Created June 13, 2013 08:11
Show Gist options
  • Select an option

  • Save mikeda/5772031 to your computer and use it in GitHub Desktop.

Select an option

Save mikeda/5772031 to your computer and use it in GitHub Desktop.
mod_proxy_balancerでアクセスされるパスによって無理やりtimeout値を変更する
<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