Advertisement
Guest User

original conf

a guest
May 10th, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. #------------------------------------------------------------------------------
  2. # file: apps.gss.ai.com
  3. # desc: configure the apps virtual hosts
  4. #------------------------------------------------------------------------------
  5.  
  6. ## HTTP requests
  7.  
  8. <VirtualHost *:80>
  9. ServerAdmin sdhub-ops@ai.com
  10.  
  11. ServerName qa-apps.gss.ai.com
  12. ServerAlias *.gss.ai.com
  13.  
  14. DocumentRoot /local/var/www
  15.  
  16. ErrorLog ${APACHE_LOG_DIR}/sdhub_error.log
  17. CustomLog ${APACHE_LOG_DIR}/sdhub_access.log combined
  18.  
  19. # redirect to HTTPS connection
  20. RewriteEngine On
  21. RewriteCond %{REQUEST_URI} !=/crossdomain.xml
  22. RewriteCond %{REQUEST_URI} !=/clientaccesspolicy.xml
  23. RewriteRule ^/?(.*)$ https://%{HTTP_HOST}/$1 [redirect=302,last]
  24. #ProxyPass /api/ http://localhost:7165/api/
  25. #ProxyPassReverse /api/ http://localhost:7165/api/
  26. </VirtualHost>
  27.  
  28. ## HTTPS requests
  29. <VirtualHost *:443>
  30. ServerAdmin sdhub-ops@ai.com
  31.  
  32. ServerName qa-apps.gss.ai.com
  33. ServerAlias *.gss.ai.com
  34.  
  35. ErrorLog ${APACHE_LOG_DIR}/sdhub_error.log
  36.  
  37. # Possible values include: debug, info, notice, warn, error, crit,
  38. # alert, emerg.
  39. LogLevel warn
  40.  
  41. CustomLog ${APACHE_LOG_DIR}/sdhub_ssl_access.log combined
  42.  
  43. SSLEngine On
  44. # SSLCertificateFile /etc/ssl/server.crt
  45. # SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
  46. SSLCertificateFile /etc/ssl/gss/wc.gss.ai.com.crt
  47. SSLCertificateKeyFile /etc/ssl/gss/wc.gss.ai.com.key
  48. DocumentRoot /local/var/www/apps.gss.ai.com/htdocs
  49.  
  50. Alias /favicon.ico /local/var/www/public/common/trunk/images/favicon.ico
  51. Alias /public /local/var/www/public
  52.  
  53. <Location "/">
  54. # globally require pubcookie
  55. SSLRequireSSL
  56. AuthType aiNet
  57. PubcookieInactiveExpire -1
  58. PubcookieAppID qa-apps.gss.ai.com
  59. Require valid-user
  60. </Location>
  61.  
  62. # SDHome Pubcookie
  63. <Location "/sdhome/">
  64. # globally require pubcookie
  65. SSLRequireSSL
  66. AuthType aiNet
  67. PubcookieInactiveExpire -1
  68. PubcookieAppID qa-apps.gss.ai.com
  69. Require valid-user
  70. </Location>
  71.  
  72. <Location "/public">
  73. # disable pubcookie (this is for public content that must be pubcookie-free)
  74. Satisfy Any
  75. Allow from all
  76. </Location>
  77.  
  78. #----------------------------------------------------------------------------
  79. # SDHUB
  80. #----------------------------------------------------------------------------
  81.  
  82. WSGIDaemonProcess sdhub threads=5 processes=2
  83. WSGIProcessGroup sdhub
  84. WSGIScriptAlias /sdhub /local/contrib/app/sdhub/current/sdhub/wsgi-prod.py
  85. # WSGIScriptAlias /sdhub /local/contrib/app/sdhub/current/sdhub/wsgi-qa.py
  86.  
  87. Alias /sdhub/static /local/contrib/app/sdhub/current/public
  88. Alias /konaloe /local/contrib/app/sdhub/current/konaloe
  89.  
  90. <Location "/sdhub/static">
  91. # disable pubcookie
  92. Satisfy Any
  93. Allow from all
  94. </Location>
  95. <Location "/sdhub/bw/email">
  96. # disable pubcookie (email cron notification)
  97. Satisfy Any
  98. Allow from all
  99. </Location>
  100.  
  101. #----------------------------------------------------------------------------
  102. # INGESTER
  103. #----------------------------------------------------------------------------
  104.  
  105. # for WSGI embedded mode, disable the next two directives:
  106. # WSGIDaemonProcess ingester threads=5 processes=2
  107. # WSGIProcessGroup ingester
  108.  
  109. # WSGIScriptAlias /ingester /usr/local/contrib/app/ingester/current/app/apache/ingester-qa.wsgi
  110. # Alias /ingester/static /usr/local/contrib/app/ingester/current/app/ingester/public/static
  111.  
  112. # <Location "/ingester/public">
  113. # disable pubcookie (this is for the kick-start request)
  114. # Satisfy Any
  115. # Allow from all
  116. # </Location>
  117.  
  118. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  119. </VirtualHost>
  120.  
  121. #------------------------------------------------------------------------------
  122. # end of apps.gss.ai.com
  123. #------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement