Guest User

Untitled

a guest
Apr 13th, 2014
80,354
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. http://10.0.0.1:8080/site1
  2.  
  3. http://10.0.0.1:8080/site2
  4.  
  5. ProxyPass /site1 http://10.0.0.1:8080/site1
  6. ProxyPassReverse /site1 http://10.0.0.1:8080/site1
  7.  
  8. ProxyPass /site2 http://10.0.0.1:8080/site2
  9. ProxyPassReverse /site2 http://10.0.0.1:8080/site2
  10.  
  11. ProxyPass /site3 http://10.0.0.2:8080/site3
  12. ProxyPassReverse /site3 http://10.0.0.2:8080/site3
  13.  
  14. ProxyPass /site4 http://10.0.0.1:8080/site4
  15. ProxyPassReverse /site4 http://10.0.0.1:8080/site4
  16.  
  17. RewriteEngine On
  18. RewriteRule ^/(.*) http://10.0.0.1:8080/VirtualHostBase/https/%{SERVER_NAME}:443/site1/VirtualHostRoot/$1 [L,P]
  19.  
  20. <VirtualHost *:80>
  21.  
  22. Redirect permanent / https://10.0.0.1/
  23.  
  24. </VirtualHost>
  25.  
  26. RewriteEngine On
  27. RewriteRule ^/site1(.*) http://10.0.0.1:8080/VirtualHostBase/https/{SERVER_NAME}:443/site1/VirtualHostRoot/$1 [L,P]
  28. RewriteRule ^/site2(.*) http://10.0.0.1:8080/VirtualHostBase/https/{SERVER_NAME}:443/site2/VirtualHostRoot/$1 [L,P]
  29. RewriteRule ^/site3(.*) http://10.0.0.2:8080/VirtualHostBase/https/{SERVER_NAME}:443/site3/VirtualHostRoot/$1 [L,P]
  30. RewriteRule ^/site4(.*) http://10.0.0.1:8080/VirtualHostBase/https/{SERVER_NAME}:443/site4/VirtualHostRoot/$1 [L,P]
RAW Paste Data