2011-10-07 03:14:29 +00:00
|
|
|
WSGIPythonHome /opt/regluit/ENV
|
|
|
|
WSGISocketPrefix /opt/regluit
|
2011-11-20 02:48:26 +00:00
|
|
|
|
2012-01-16 23:32:32 +00:00
|
|
|
<VirtualHost _default_:80>
|
2011-11-20 02:48:26 +00:00
|
|
|
|
|
|
|
ServerAdmin info@gluejar.com
|
|
|
|
|
2012-01-04 03:26:15 +00:00
|
|
|
RewriteEngine On
|
2012-01-16 23:32:32 +00:00
|
|
|
|
|
|
|
RewriteCond %{SERVER_NAME} !^unglue.it$ [NC]
|
|
|
|
RewriteRule (.*) http://unglue.it$1 [R=301,L]
|
|
|
|
|
2012-01-15 20:37:08 +00:00
|
|
|
RewriteRule ^/$ https://unglue.it/ [R=301]
|
|
|
|
RewriteRule /admin(.*) https://unglue.it/admin$1 [R=301]
|
|
|
|
RewriteRule /accounts(.*) https://unglue.it/accounts$1 [R=301]
|
2012-11-05 21:58:30 +00:00
|
|
|
RewriteRule /pledge(.*) https://unglue.it/pledge$1 [R=301]
|
2013-12-13 20:15:35 +00:00
|
|
|
RewriteRule /gift(.*) https://unglue.it/gift$1 [R=301]
|
2011-11-20 02:48:26 +00:00
|
|
|
|
|
|
|
WSGIDaemonProcess regluit processes=4 threads=4 python-eggs=/tmp/regluit-python-eggs
|
2011-10-07 03:14:29 +00:00
|
|
|
WSGIScriptAlias / /opt/regluit/deploy/regluit.wsgi
|
|
|
|
|
|
|
|
<Directory /opt/regluit/static>
|
|
|
|
Options Indexes FollowSymLinks
|
|
|
|
AllowOverride None
|
|
|
|
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
</Directory>
|
|
|
|
|
2011-11-18 16:37:05 +00:00
|
|
|
Alias /static /var/www/static
|
2011-11-20 02:48:26 +00:00
|
|
|
|
2012-01-20 16:24:27 +00:00
|
|
|
ErrorLog ${APACHE_LOG_DIR}/unglue.it-error.log
|
|
|
|
LogLevel warn
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/unglue.it-access.log combined
|
|
|
|
|
|
|
|
|
2011-11-20 02:48:26 +00:00
|
|
|
</VirtualHost>
|
|
|
|
|
|
|
|
<VirtualHost _default_:443>
|
|
|
|
|
2014-05-24 01:15:54 +00:00
|
|
|
ServerName unglue.it:443
|
2011-11-20 02:48:26 +00:00
|
|
|
SSLEngine on
|
2014-10-15 21:56:59 +00:00
|
|
|
SSLProtocol All -SSLv2 -SSLv3
|
2011-11-20 02:48:26 +00:00
|
|
|
SSLCertificateFile /etc/ssl/certs/server.crt
|
|
|
|
SSLCertificateKeyFile /etc/ssl/private/server.key
|
2013-01-08 02:11:39 +00:00
|
|
|
SSLCertificateChainFile /etc/ssl/certs/STAR_unglue_it.ca-bundle
|
2011-11-20 02:48:26 +00:00
|
|
|
|
2012-01-16 23:32:32 +00:00
|
|
|
RewriteEngine On
|
|
|
|
|
|
|
|
RewriteCond %{SERVER_NAME} !^unglue.it$ [NC]
|
|
|
|
RewriteRule (.*) https://unglue.it$1 [R=301,L]
|
|
|
|
|
2011-11-20 02:48:26 +00:00
|
|
|
WSGIDaemonProcess regluit-ssl processes=4 threads=4 python-eggs=/tmp/regluit-python-eggs
|
|
|
|
WSGIScriptAlias / /opt/regluit/deploy/regluit.wsgi
|
|
|
|
|
|
|
|
<Directory /opt/regluit/static>
|
|
|
|
Options Indexes FollowSymLinks
|
|
|
|
AllowOverride None
|
|
|
|
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
Alias /static /var/www/static
|
|
|
|
|
|
|
|
BrowserMatch "MSIE [2-6]" \
|
|
|
|
nokeepalive ssl-unclean-shutdown \
|
|
|
|
downgrade-1.0 force-response-1.0
|
|
|
|
# MSIE 7 and newer should be able to use keepalive
|
|
|
|
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
|
|
|
|
|
2012-01-20 16:24:27 +00:00
|
|
|
ErrorLog ${APACHE_LOG_DIR}/unglue.it-ssl-error.log
|
|
|
|
LogLevel warn
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/unglue.it-ssl-access.log combined
|
|
|
|
|
|
|
|
|
2011-11-20 02:48:26 +00:00
|
|
|
</VirtualHost>
|