Advertisement
Guest User

ZZZZ-sprinklers.conf

a guest
Aug 24th, 2015
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. #
  2. # Enable name-based virtual hosts on port 80
  3. #
  4. NameVirtualHost *:80
  5.  
  6. #
  7. # Virtual host for http://ipa.example.com - redirects to IPA admin interface
  8. # on port 443
  9. #
  10. <VirtualHost *:80>
  11. ServerName ipa.example.com
  12. Include /etc/httpd/conf.d/ipa-rewrite.conf
  13. </VirtualHost>
  14.  
  15. #
  16. # Virtual host for http://sprinklers.example.com - redirects to reverse proxy/
  17. # static UI content server on port 59872
  18. #
  19. <VirtualHost *:80>
  20. ServerName sprinklers.example.com
  21. ServerAlias sprinklers
  22. Redirect "/" "https://www.example.com:59872/"
  23. </VirtualHost>
  24.  
  25. #
  26. # Listen on port 59872
  27. #
  28. Listen 59872
  29.  
  30. #
  31. # Virtual host for https://www.example.com:59872 - reverse proxy for
  32. # OpenSprinkler controller plus static UI content server
  33. #
  34. <VirtualHost *:59872>
  35.  
  36. ServerName www.example.com:59872
  37. DocumentRoot "/var/www/opensprinkler"
  38.  
  39. ErrorLog /etc/httpd/logs/opensprinkler_error_log
  40. TransferLog /etc/httpd/logs/opensprinkler_access_log
  41. LogLevel warn
  42.  
  43. NSSEngine on
  44.  
  45. # Copied from /etc/httpd/conf.d/nss.conf (IPA)
  46. NSSCipherSuite +rsa_rc4_128_md5,+rsa_rc4_128_sha,+rsa_3des_sha,-rsa_des_sha,-rsa_rc4_40_md5,-rsa_rc2_40_md5,-rsa_null_md5,-rsa_null_sha,+fips_3des_sha,-fips_des_sha,-fortezza,-fortezza_rc4_128_sha,-fortezza_null,-rsa_des_56_sha,-rsa_rc4_56_sha,+rsa_aes_128_sha,+rsa_aes_256_sha
  47.  
  48. # Copied from /etc/httpd/conf.d/nss.conf (IPA); why 3 times?
  49. NSSProtocol TLSv1.0,TLSv1.1,TLSv1.2
  50. NSSProtocol TLSv1.0,TLSv1.1,TLSv1.2
  51. NSSProtocol TLSv1.0,TLSv1.1,TLSv1.2
  52.  
  53. NSSNickname "www.example.com - Verisign, Inc."
  54.  
  55. # Copied from /etc/httpd/conf.d/nss.conf (IPA); needed?
  56. <Files ~ "\.(cgi|shtml|phtml|php3?)$">
  57. NSSOptions +StdEnvVars
  58. </Files>
  59. <Directory "/var/www/cgi-bin">
  60. NSSOptions +StdEnvVars
  61. </Directory>
  62.  
  63. # Don't proxy the /ui directory; serve it directly
  64. ProxyPass /ui !
  65.  
  66. # Get everything else from the OpenSprinkler controller
  67. ProxyPass / http://opensprinkler.example.com/
  68. # And fix the headers in any redirect responses
  69. ProxyPassReverse / http://opensprinkler.example.com/
  70.  
  71. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement