Advertisement
Guest User

Untitled

a guest
Aug 27th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. <VirtualHost *:443>
  2. ProxyPreserveHost On
  3. ProxyRequests Off
  4. ServerName sub1.example.com
  5. ServerAlias www.sub1.example.com
  6. ProxyPass / http://192.168.1.50:5000/
  7. ProxyPassReverse / http://192.168.1.50:5000/
  8.  
  9. <Location />
  10. SSLRequireSSL
  11. Order allow,deny
  12. Allow from all
  13. </Location>
  14.  
  15. SSLEngine On
  16. SSLProxyEngine On
  17. SSLCertificateFile /etc/apache2/ssl/apache.crt
  18. SSLCertificateKeyFile /etc/apache2/ssl/apache.key
  19. </VirtualHost>
  20.  
  21. <VirtualHost *:80>
  22. ServerName sub1.example.com
  23. ServerAlias www.sub1.example.com
  24. Redirect permanent / https://sub1.example.com/
  25. </VirtualHost>
  26.  
  27. <VirtualHost *:443>
  28. ProxyPreserveHost On
  29. ProxyRequests Off
  30. ServerName sub2.example.com
  31. ServerAlias www.sub2.example.com
  32. ProxyPass / http://192.168.1.121:8989/
  33. ProxyPassReverse / http://192.168.1.121:8989/
  34.  
  35. <Location />
  36. SSLRequireSSL
  37. Order allow,deny
  38. Allow from all
  39. </Location>
  40.  
  41. SSLEngine On
  42. SSLCertificateFile /etc/apache2/ssl/apache.crt
  43. SSLCertificateKeyFile /etc/apache2/ssl/apache.key
  44. </VirtualHost>
  45.  
  46. <VirtualHost *:80>
  47. ServerName sub2.example.com
  48. ServerAlias www.sub2.example.com
  49. Redirect permanent / https://sub2.example.com/
  50. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement