Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *>
- ServerName monitoringbox.com
- DocumentRoot /path/to/nowhere
- ProxyRequests off
- ProxyPass /splunk http://127.0.0.1:8000/splunk
- ProxyPassReverse /splunk http://127.0.0.1:8000/splunk
- <Proxy /splunk/*>
- Order allow,deny
- Allow from all
- </Proxy>
- tools.proxy.on = True
- ProxyPass /splunk http://127.0.0.1:8000/
- ProxyPassReverse /splunk http://127.0.0.1:8000/
- < VirtualHost blablabla:443>
- AllowEncodedSlashes On
- SSLProxyEngine On
- RequestHeader set Front-End-Https "On"
- SSLProxyVerify none
- SSLProxyCheckPeerCN off
- SSLProxyCheckPeerName off
- SSLProxyCheckPeerExpire off
- ProxyPassReverse /one https://10.0.1.1:8000/one
- ProxyPassReverse /two https://10.0.1.2:8000/two
- RewriteEngine on
- RewriteRule /one(.*) balancer://splunkbalancer_one$1 [P]
- RewriteRule /two(.*) balancer://splunkbalancer_two$1 [P]
- RewriteRule ^/(.+) balancer://splunkbalancer/$1 [P]
- Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED
- <Proxy balancer://splunkbalancer>
- BalancerMember https://10.0.1.1:8000/one route=1
- BalancerMember https://10.0.3.2:8000/two route=2
- ProxySet stickysession=ROUTEID
- </Proxy>
- <Proxy balancer://splunkbalancer_one>
- BalancerMember https://10.0.1.1:8000/one route=1
- ProxySet stickysession=ROUTEID
- </Proxy>
- <Proxy balancer://splunkbalancer_two>
- BalancerMember https://10.0.1.2:8000/two route=2
- ProxySet stickysession=ROUTEID
- </Proxy>
- </VirtualHost>
Add Comment
Please, Sign In to add comment