Advertisement
Guest User

iain wright

a guest
Feb 16th, 2011
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1.  
  2. Listen 80
  3. Listen 443
  4. NameVirtualHost *:80
  5.  
  6. Servername app1.xyz.com
  7.  
  8. <VirtualHost *:80>
  9. ServerName jira.xyz.org
  10. RewriteEngine On
  11. RewriteCond %{SERVER_PORT} !^443$
  12. RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
  13. </VirtualHost>
  14.  
  15. # NameVirtualHost *:443
  16.  
  17. <VirtualHost 192.168.1.132:443>
  18. Servername jira.xyz.org
  19. SSLEngine On
  20. SSLCertificateFile /etc/httpd/ssl/cert.crt
  21. SSLCACertificateFile /etc/httpd/ssl/intermediate.crt
  22. SSLCertificateKeyFile /etc/httpd/ssl/jira.xyz.org.key
  23. SSLProxyEngine on
  24. <Proxy *>
  25. Order deny,allow
  26. Allow from all
  27. </Proxy>
  28. ProxyPass / http://localhost:8080/
  29. ProxyPassReverse / http://localhost:8080/
  30. </VirtualHost>
  31.  
  32. <VirtualHost *:80>
  33. ServerName wiki.xyz.org
  34. <Proxy *>
  35. Order deny,allow
  36. Allow from all
  37. </Proxy>
  38. ProxyPass / http://localhost:8090/
  39. ProxyPassReverse / http://localhost:8090/
  40. </VirtualHost>
  41.  
  42. # Mod Status Configuration for ServerDensity Monitoring Agent
  43. ExtendedStatus On
  44.  
  45. <Location /server-status>
  46. SetHandler server-status
  47. Order Deny,Allow
  48. Deny from all
  49. Allow from 127.0.0.1
  50. </Location>
  51.  
  52. <VirtualHost *:80>
  53. ServerName redcap.xyz.org
  54. ServerAdmin info@xyz.org
  55. DocumentRoot /opt/redcap/
  56. </VirtualHost>
  57.  
  58. <VirtualHost 192.168.1.133:80>
  59. ServerName redcap-test.xyz.org
  60. RewriteEngine On
  61. RewriteCond %{SERVER_PORT} !^443$
  62. RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
  63. </VirtualHost>
  64.  
  65. <VirtualHost 192.168.1.133:443>
  66. ServerName redcap.xyz.org
  67. ServerAdmin info@xyz.org
  68. DocumentRoot /opt/redcap/
  69. SSLEngine on
  70. SSLProtocol -all +SSLv3 +TLSv1
  71. SSLCertificateFile /etc/httpd/ssl/redcap.crt
  72. SSLCertificateKeyFile /etc/httpd/ssl/redcap.key
  73. SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
  74. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement