mirror of https://github.com/zulip/zulip.git
51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
WSGISocketPrefix /usr/lib/apache2/modules/
|
|
Listen 444
|
|
|
|
<VirtualHost *:444>
|
|
ServerName stats1.zulip.net
|
|
|
|
SSLEngine on
|
|
SSLCertificateFile /etc/ssl/certs/stats1.zulip.net.crt
|
|
SSLCertificateKeyFile /etc/ssl/certs/stats1.zulip.net.key
|
|
|
|
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>
|
|
|
|
Alias /media/ "/usr/lib/pymodules/python2/django/contrib/admin/media/"
|
|
<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>
|