Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 17th, 2012  |  syntax: None  |  size: 1.82 KB  |  views: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <Proxy balancer://agentcluster>
  2.      BalancerMember http://192.168.0.1:7003 route=1 loadfactor=50 retry=60
  3.      BalancerMember http://192.168.0.2:7003 route=1 loadfactor=50 retry=60
  4.     </Proxy>
  5.  
  6.     # Redirect all non-static requests to agent
  7.     RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  8.     RewriteRule ^/(.*)$ balancer://agentcluster%{REQUEST_URI} [P,QSA,L]
  9.  
  10.     ProxyPass /abc-oper balancer://agentcluster/abc-oper
  11.     ProxyPassReverse /abc-oper balancer://agentcluster/abc-oper
  12.     ProxyPreserveHost on
  13.  
  14.     SetEnv force-proxy-request-1.0 1
  15.     SetEnv proxy-nokeepalive 1
  16.  
  17.     <Proxy *>
  18.      Order deny,allow
  19.      Allow from all
  20.     </Proxy>
  21.  
  22.     ErrorLog /apps/apache/logs/agent.abconline.com.error.log
  23.     CustomLog /apps/apache/logs/agent.abconline.com.access.log combined
  24.     LogLevel debug
  25.        
  26. <Proxy balancer://stagingcluster>
  27.      BalancerMember http://192.168.0.1:7003 route=1 loadfactor=50 retry=60
  28.      BalancerMember http://192.168.0.2:7003 route=1 loadfactor=50 retry=60
  29.     </Proxy>
  30.  
  31.     # Redirect all non-static requests to agent
  32.     RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  33.     RewriteRule ^/(.*)$ balancer://stagingcluster%{REQUEST_URI} [P,QSA,L]
  34.  
  35.     ProxyPass /abc-oper balancer://stagingcluster/abc-oper
  36.     ProxyPassReverse /abc-oper balancer://stagingcluster/abc-oper
  37.     ProxyPreserveHost on
  38.  
  39.     SetEnv force-proxy-request-1.0 1
  40.     SetEnv proxy-nokeepalive 1
  41.  
  42.     <Proxy *>
  43.      Order deny,allow
  44.      Allow from all
  45.     </Proxy>
  46.  
  47.     ErrorLog /apps/apache/logs/staging.abconline.com.error.log
  48.     CustomLog /apps/apache/logs/staging.abconline.com.access.log combined
  49.     LogLevel debug
  50.        
  51. RewriteRule      / balancer://stagingcluster/staging%{REQUEST_URI} [P,QSA,L]
  52. ProxyPassReverse / balancer://stagingcluster/staging
  53.  
  54.  
  55. # Possibly also require a:
  56. #ProxyHTMLURLMap balancer://stagingcluster/staging   /
clone this paste RAW Paste Data