Guest User

Untitled

a guest
Feb 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. <VirtualHost 1.2.3.4:443>
  2. ServerName host.example.org
  3.  
  4. <Proxy *>
  5. Order deny,allow
  6. Allow from all
  7. </Proxy>
  8.  
  9. SSLProxyEngine On
  10. ProxyRequests Off
  11. ProxyPreserveHost On
  12. ProxyPass / https://localhost:8443/
  13. ProxyPassReverse / https://localhost:8443/
  14. </VirtualHost>
  15.  
  16. proxy: no HTTP 0.9 request (with no host line) on incoming request and preserve host set forcing hostname to be host.example.org for uri
  17.  
  18. "?O^A^C / HTTP/1.1" 302
  19.  
  20. "GET / HTTP/1.1" 302
  21.  
  22. <VirtualHost 1.2.3.4:443>
  23. ServerName host.domain.org
  24.  
  25. <Proxy *>
  26. Order deny,allow
  27. Allow from all
  28. </Proxy>
  29.  
  30. SSLEngine on
  31. SSLProxyEngine On
  32. SSLCertificateFile /etc/apache2/ssl/certificate.crt
  33. SSLCertificateKeyFile /etc/apache2/ssl/certificate.key
  34.  
  35. ProxyRequests Off
  36. ProxyPreserveHost On
  37. ProxyPass / https://localhost:8443/
  38. ProxyPassReverse / https://localhost:8443/
  39. </VirtualHost>
  40.  
  41. <VirtualHost 1.2.3.4:443>
  42. ServerName host.domain.org
  43.  
  44. SSLEngine On
  45. # include other ssl options, like cert and key here
  46.  
  47. ProxyRequests Off
  48. ProxyPreserveHost On
  49.  
  50. <Location />
  51. ProxyPass http://localhost:8443/
  52. </Location>
  53. </VirtualHost>
  54.  
  55. ProxyRequests Off
  56.  
  57. <Proxy balancer://someapplication>
  58. BalancerMember http://127.0.0.1:18443 keepalive=on max=2 retry=30
  59. BalancerMember http://127.0.0.1:18444 keepalive=on max=2 retry=30
  60. BalancerMember http://127.0.0.1:18445 keepalive=on max=2 retry=30
  61. </Proxy>
  62.  
  63.  
  64. <VirtualHost 1.2.3.4:443>
  65. SSLEngine on
  66. SSLCipherSuite SSLv2:-LOW:-EXPORT:RC4+RSA
  67. SSLCertificateFile /path/to/cert.pem
  68. SSLCertificateKeyFile //path/to/key.pem
  69. SSLVerifyClient optional
  70.  
  71. RequestHeader set X-Client-DN %{SSL_CLIENT_S_DN}e
  72. RequestHeader set X-Client-Verify %{SSL_CLIENT_VERIFY}e
  73.  
  74. <Location />
  75. SetHandler balancer-manager
  76. Order allow,deny
  77. Allow from all
  78. </Location>
  79.  
  80. ProxyPass / balancer://someapplication:443/
  81. ProxyPassReverse / balancer://someapplication:443/
  82. ProxyPreserveHost on
  83.  
  84. ProxyPass / http://localhost:8080/
  85. ProxyPassReverse / http://localhost:8080/
Add Comment
Please, Sign In to add comment