2011-10-07 03:14:29 +00:00
|
|
|
WSGIPythonHome /opt/regluit/ENV
|
|
|
|
WSGISocketPrefix /opt/regluit
|
2011-11-20 02:48:26 +00:00
|
|
|
|
|
|
|
<VirtualHost *:80>
|
|
|
|
|
|
|
|
ServerName please.unglueit.com
|
|
|
|
ServerAdmin info@gluejar.com
|
|
|
|
|
2012-01-04 03:26:15 +00:00
|
|
|
RewriteEngine On
|
|
|
|
RewriteRule ^/$ https://please.unglueit.com/ [R=301]
|
|
|
|
RewriteRule /admin(.*) https://please.unglueit.com/admin$1 [R=301]
|
|
|
|
RewriteRule /accounts(.*) https://please.unglueit.com/accounts$1 [R=301]
|
2011-11-20 02:48:26 +00:00
|
|
|
|
|
|
|
WSGIDaemonProcess regluit processes=4 threads=4 python-eggs=/tmp/regluit-python-eggs
|
2012-01-26 02:12:23 +00:00
|
|
|
WSGIScriptAlias / /opt/regluit/deploy/please.wsgi
|
2011-10-07 03:14:29 +00:00
|
|
|
|
|
|
|
<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
|
|
|
|
|
|
|
</VirtualHost>
|
|
|
|
|
|
|
|
<VirtualHost _default_:443>
|
|
|
|
|
|
|
|
SSLEngine on
|
|
|
|
SSLCertificateFile /etc/ssl/certs/server.crt
|
|
|
|
SSLCertificateKeyFile /etc/ssl/private/server.key
|
2012-01-26 01:48:58 +00:00
|
|
|
#SSLCertificateChainFile /etc/ssl/certs/gd_bundle.crt
|
2011-11-20 02:48:26 +00:00
|
|
|
|
|
|
|
WSGIDaemonProcess regluit-ssl processes=4 threads=4 python-eggs=/tmp/regluit-python-eggs
|
2012-01-26 02:12:23 +00:00
|
|
|
WSGIScriptAlias / /opt/regluit/deploy/please.wsgi
|
2011-11-20 02:48:26 +00:00
|
|
|
|
|
|
|
<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
|
|
|
|
|
|
|
|
</VirtualHost>
|