2013-04-16 22:50:21 +02:00
|
|
|
WSGISocketPrefix /usr/lib/apache2/modules/
|
2013-09-05 20:08:29 +02:00
|
|
|
Listen 444
|
2013-04-16 22:50:21 +02:00
|
|
|
|
2013-09-05 20:08:29 +02:00
|
|
|
<VirtualHost *:444>
|
|
|
|
ServerName stats1.zulip.net
|
2013-04-16 22:50:21 +02:00
|
|
|
|
|
|
|
SSLEngine on
|
2013-09-05 20:08:29 +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"
|
|
|
|
|
|
|
|
<Location "/">
|
|
|
|
AuthType Digest
|
|
|
|
AuthName "wiki"
|
|
|
|
AuthDigestProvider file
|
|
|
|
AuthUserFile /etc/apache2/users/wiki
|
|
|
|
Require valid-user
|
|
|
|
</Location>
|
|
|
|
|
|
|
|
# Graphite specific setup
|
|
|
|
DocumentRoot "/opt/graphite/webapp"
|
|
|
|
WSGIDaemonProcess graphite processes=5 threads=5 display-name='%{GROUP}' inactivity-timeout=120
|
|
|
|
WSGIProcessGroup graphite
|
|
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
|
|
WSGIImportScript /opt/graphite/conf/graphite.wsgi process-group=graphite application-group=%{GLOBAL}
|
|
|
|
|
|
|
|
WSGIScriptAlias / /opt/graphite/conf/graphite.wsgi
|
|
|
|
|
|
|
|
Alias /content/ /opt/graphite/webapp/content/
|
|
|
|
<Location "/content/">
|
|
|
|
SetHandler None
|
|
|
|
</Location>
|
|
|
|
|
2015-10-04 18:56:26 +02:00
|
|
|
Alias /media/ "/usr/lib/pymodules/python2/django/contrib/admin/media/"
|
2013-04-16 22:50:21 +02:00
|
|
|
<Location "/media/">
|
|
|
|
SetHandler None
|
|
|
|
</Location>
|
|
|
|
|
|
|
|
<Directory /opt/graphite/conf/>
|
|
|
|
Order deny,allow
|
|
|
|
Allow from all
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
ErrorLog /var/log/apache2/error.log
|
|
|
|
LogLevel warn
|
|
|
|
|
|
|
|
CustomLog /var/log/apache2/access.log combined
|
|
|
|
ServerSignature On
|
|
|
|
</VirtualHost>
|