Guest User

Untitled

a guest
Nov 20th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. <VirtualHost *>
  2. ServerName monitoringbox.com
  3. DocumentRoot /path/to/nowhere
  4.  
  5. ProxyRequests off
  6. ProxyPass /splunk http://127.0.0.1:8000/splunk
  7. ProxyPassReverse /splunk http://127.0.0.1:8000/splunk
  8. <Proxy /splunk/*>
  9. Order allow,deny
  10. Allow from all
  11. </Proxy>
  12.  
  13. tools.proxy.on = True
  14.  
  15. ProxyPass /splunk http://127.0.0.1:8000/
  16. ProxyPassReverse /splunk http://127.0.0.1:8000/
  17.  
  18. < VirtualHost blablabla:443>
  19.  
  20. AllowEncodedSlashes On
  21.  
  22. SSLProxyEngine On
  23.  
  24. RequestHeader set Front-End-Https "On"
  25.  
  26. SSLProxyVerify none
  27. SSLProxyCheckPeerCN off
  28. SSLProxyCheckPeerName off
  29. SSLProxyCheckPeerExpire off
  30.  
  31. ProxyPassReverse /one https://10.0.1.1:8000/one
  32. ProxyPassReverse /two https://10.0.1.2:8000/two
  33.  
  34. RewriteEngine on
  35.  
  36. RewriteRule /one(.*) balancer://splunkbalancer_one$1 [P]
  37. RewriteRule /two(.*) balancer://splunkbalancer_two$1 [P]
  38.  
  39. RewriteRule ^/(.+) balancer://splunkbalancer/$1 [P]
  40.  
  41. Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED
  42.  
  43. <Proxy balancer://splunkbalancer>
  44. BalancerMember https://10.0.1.1:8000/one route=1
  45. BalancerMember https://10.0.3.2:8000/two route=2
  46. ProxySet stickysession=ROUTEID
  47. </Proxy>
  48.  
  49. <Proxy balancer://splunkbalancer_one>
  50. BalancerMember https://10.0.1.1:8000/one route=1
  51. ProxySet stickysession=ROUTEID
  52. </Proxy>
  53.  
  54. <Proxy balancer://splunkbalancer_two>
  55. BalancerMember https://10.0.1.2:8000/two route=2
  56. ProxySet stickysession=ROUTEID
  57. </Proxy>
  58.  
  59. </VirtualHost>
Add Comment
Please, Sign In to add comment