51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
WSGIPythonHome /opt/regluit/ENV
|
|
WSGISocketPrefix /opt/regluit
|
|
|
|
<VirtualHost _default_:80>
|
|
|
|
ServerAdmin info@gluejar.com
|
|
|
|
Redirect permanent / https://unglue.it/
|
|
|
|
|
|
</VirtualHost>
|
|
|
|
<VirtualHost _default_:443>
|
|
|
|
ServerName unglue.it:443
|
|
SSLEngine on
|
|
SSLProtocol All -SSLv2 -SSLv3
|
|
SSLCertificateFile /etc/ssl/certs/server.crt
|
|
SSLCertificateKeyFile /etc/ssl/private/server.key
|
|
SSLCertificateChainFile /etc/ssl/certs/STAR_unglue_it.ca-bundle
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{SERVER_NAME} !^unglue.it$ [NC]
|
|
RewriteRule (.*) https://unglue.it$1 [R=301,L]
|
|
|
|
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
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/unglue.it-ssl-error.log
|
|
LogLevel warn
|
|
CustomLog ${APACHE_LOG_DIR}/unglue.it-ssl-access.log combined
|
|
|
|
|
|
</VirtualHost> |