Guest User

Plone and Tomcat VHost Config

a guest
May 20th, 2016
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. UseCanonicalName On
  2.  
  3. <VirtualHost *80>
  4. ServerAlias web.url.in
  5. ServerSignature On
  6.  
  7. Header set X-Frame-Options "SAMEORIGIN"
  8. Header set Strict-Transport-Security "max-age=15768000; includeSubDomains"
  9. Header set X-XSS-Protection "1; mode=block"
  10. Header set X-Content-Type-Options "nosniff"
  11. Header set Content-Security-Policy-Report-Only "default-src 'self'; img-src *; style-src 'unsafe-inline'; script-src 'unsafe-inline' 'unsafe-eval'"
  12.  
  13. ProxyVia On
  14.  
  15. # prevent your web server from being used as global HTTP proxy
  16. <LocationMatch "^[^/]">
  17. Deny from all
  18. </LocationMatch>
  19.  
  20. <Proxy *>
  21. Order deny,allow
  22. Allow from all
  23. </Proxy>
  24.  
  25. RewriteEngine on
  26. RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/web.url.in:80/lhtr/VirtualHostRoot/$1 [P,L]
  27.  
  28. </VirtualHost>
  29.  
  30. <VirtualHost *>
  31. ServerAlias *
  32. ServerRoot /var/www
  33. ServerSignature On
  34. </VirtualHost>
  35.  
  36. <VirtualHost *:80>
  37. ServerName web.url.in
  38. ProxyPreserveHost On
  39.  
  40. ProxyPass /MNCD2016 http://web.url.in:8081/MNCD2016
  41. ProxyPassReverse /VSRP2016 http://web.url.in:8081/MNCD2016
  42.  
  43. RewriteEngine on
  44. RewriteRule ^/$ http://web.url.in/MNCD2016
  45. </VirtualHost>
Add Comment
Please, Sign In to add comment