Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #------------------------------------------------------------------------------
- # file: apps.gss.ai.com
- # desc: configure the apps virtual hosts
- #------------------------------------------------------------------------------
- ## HTTP requests
- <VirtualHost *:80>
- ServerAdmin [email protected]
- ServerName qa-apps.gss.ai.com
- ServerAlias *.gss.ai.com
- DocumentRoot /local/var/www
- ErrorLog ${APACHE_LOG_DIR}/sdhub_error.log
- CustomLog ${APACHE_LOG_DIR}/sdhub_access.log combined
- # redirect to HTTPS connection
- RewriteEngine On
- RewriteCond %{REQUEST_URI} !=/crossdomain.xml
- RewriteCond %{REQUEST_URI} !=/clientaccesspolicy.xml
- RewriteRule ^/?(.*)$ https://%{HTTP_HOST}/$1 [redirect=302,last]
- </VirtualHost>
- ## HTTPS requests
- <VirtualHost *:443>
- ServerAdmin [email protected]
- ServerName qa-apps.gss.ai.com
- ServerAlias *.gss.ai.com
- ErrorLog ${APACHE_LOG_DIR}/sdhub_error.log
- # Possible values include: debug, info, notice, warn, error, crit,
- # alert, emerg.
- LogLevel warn
- CustomLog ${APACHE_LOG_DIR}/sdhub_ssl_access.log combined
- SSLEngine On
- # SSLCertificateFile /etc/ssl/server.crt
- # SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
- SSLCertificateFile /etc/ssl/gss/wc.gss.ai.com.crt
- SSLCertificateKeyFile /etc/ssl/gss/wc.gss.ai.com.key
- DocumentRoot /local/var/www/apps.gss.ai.com/htdocs
- Alias /favicon.ico /local/var/www/public/common/trunk/images/favicon.ico
- Alias /public /local/var/www/public
- <Location "/">
- # globally require pubcookie
- SSLRequireSSL
- AuthType aiNet
- #PubcookieInactiveExpire -1
- #PubcookieAppID qa-apps.gss.ai.com
- Require valid-user
- </Location>
- # SDHome Pubcookie
- <Location "/sdhome/">
- # globally require pubcookie
- SSLRequireSSL
- AuthType aiNet
- #PubcookieInactiveExpire -1
- #PubcookieAppID qa-apps.gss.ai.com
- Require valid-user
- </Location>
- <Location "/public">
- # disable pubcookie (this is for public content that must be pubcookie-free)
- Satisfy Any
- #Allow from all
- Require all granted
- </Location>
- #----------------------------------------------------------------------------
- # SDHUB
- #----------------------------------------------------------------------------
- #WSGIDaemonProcess sdhub threads=5 processes=2
- #WSGIProcessGroup sdhub
- #WSGIScriptAlias /sdhub /local/contrib/app/sdhub/current/sdhub/wsgi-prod.py
- # WSGIScriptAlias /sdhub /local/contrib/app/sdhub/current/sdhub/wsgi-qa.py
- #Alias /sdhub/static /local/contrib/app/sdhub/current/public
- #Alias /konaloe /local/contrib/app/sdhub/current/konaloe
- #<Location "/sdhub/static">
- # disable pubcookie
- # Satisfy Any
- # Allow from all
- #</Location>
- #<Location "/sdhub/bw/email">
- # disable pubcookie (email cron notification)
- # Satisfy Any
- # Allow from all
- #</Location>
- #----------------------------------------------------------------------------
- # INGESTER
- #----------------------------------------------------------------------------
- # for WSGI embedded mode, disable the next two directives:
- # WSGIDaemonProcess ingester threads=5 processes=2
- # WSGIProcessGroup ingester
- # WSGIScriptAlias /ingester /usr/local/contrib/app/ingester/current/app/apache/ingester-qa.wsgi
- # Alias /ingester/static /usr/local/contrib/app/ingester/current/app/ingester/public/static
- # <Location "/ingester/public">
- # disable pubcookie (this is for the kick-start request)
- # Satisfy Any
- # Allow from all
- # </Location>
- ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
- </VirtualHost>
- #------------------------------------------------------------------------------
- # end of apps.gss.ai.com
- #------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement