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
|
|
|
|
|
2015-01-08 22:08:18 +00:00
|
|
|
Redirect permanent / https://unglue.it/
|
2012-01-20 16:24:27 +00:00
|
|
|
|
|
|
|
|
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
|
2015-03-11 17:10:48 +00:00
|
|
|
|
|
|
|
# generated using https://mozilla.github.io/server-side-tls/ssl-config-generator/
|
|
|
|
# intermediate mode
|
|
|
|
# 2015.03.04 (with Apache v 2.2.22 and OpenSSL 1.0.1 and HSTS enabled)
|
|
|
|
|
|
|
|
SSLProtocol all -SSLv2 -SSLv3
|
|
|
|
SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
|
|
|
|
SSLHonorCipherOrder on
|
|
|
|
|
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
|
|
|
|
|
2016-05-09 21:52:46 +00:00
|
|
|
ErrorLog "|/usr/bin/cronolog /var/log/apache2/%Y%m%d_error.log"
|
2012-01-20 16:24:27 +00:00
|
|
|
LogLevel warn
|
2016-05-09 21:52:46 +00:00
|
|
|
CustomLog "|/usr/bin/cronolog /var/log/apache2/%Y%m%d_access.log" combined
|
2012-01-20 16:24:27 +00:00
|
|
|
|
2015-01-08 22:08:18 +00:00
|
|
|
</VirtualHost>
|