2013-04-16 22:50:21 +02:00
|
|
|
<VirtualHost *:80>
|
2013-07-26 21:58:40 +02:00
|
|
|
ServerName graphiti.zulip.net
|
|
|
|
Redirect permanent / https://graphiti.zulip.net/
|
2013-04-16 22:50:21 +02:00
|
|
|
</VirtualHost>
|
|
|
|
|
|
|
|
|
|
|
|
<VirtualHost *:443>
|
2013-07-26 21:58:40 +02:00
|
|
|
ServerName graphiti.zulip.net
|
2013-04-16 22:50:21 +02:00
|
|
|
|
|
|
|
SSLEngine on
|
2013-07-23 18:27:14 +02:00
|
|
|
SSLCertificateFile /etc/ssl/certs/stats1.zulip.net.crt
|
|
|
|
SSLCertificateKeyFile /etc/ssl/certs/stats1.zulip.net.key
|
2013-04-16 22:50:21 +02:00
|
|
|
|
|
|
|
Header add Strict-Transport-Security "max-age=15768000"
|
|
|
|
Header add X-Frame-Options DENY
|
|
|
|
|
|
|
|
<Location "/">
|
|
|
|
AuthType Digest
|
|
|
|
AuthName "wiki"
|
|
|
|
AuthDigestProvider file
|
|
|
|
AuthUserFile /etc/apache2/users/wiki
|
|
|
|
Require valid-user
|
|
|
|
</Location>
|
|
|
|
|
|
|
|
# Graphiti reverse-proxy to unicorn serving at localhost:8088
|
|
|
|
|
|
|
|
ProxyRequests Off
|
|
|
|
ProxyPreserveHost On
|
|
|
|
|
|
|
|
<Proxy *>
|
|
|
|
Order deny,allow
|
|
|
|
Allow from all
|
|
|
|
</Proxy>
|
|
|
|
|
|
|
|
ProxyPass / http://127.0.0.1:8088/
|
|
|
|
ProxyPassReverse / http://127.0.0.1:8088/
|
|
|
|
|
|
|
|
ErrorLog /var/log/apache2/error.log
|
|
|
|
LogLevel warn
|
|
|
|
|
|
|
|
CustomLog /var/log/apache2/access.log combined
|
|
|
|
ServerSignature On
|
|
|
|
</VirtualHost>
|