Advertisement
Guest User

new config

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