mirror of https://github.com/zulip/zulip.git
65 lines
1.7 KiB
Plaintext
65 lines
1.7 KiB
Plaintext
<VirtualHost *:80>
|
|
ServerName trac.zulip.net
|
|
Redirect permanent / https://trac.zulip.net/
|
|
</VirtualHost>
|
|
<VirtualHost *:80>
|
|
ServerName trac.humbughq.com
|
|
Redirect permanent / https://trac.zulip.net/
|
|
</VirtualHost>
|
|
<VirtualHost *:443>
|
|
ServerName trac.humbughq.com
|
|
Redirect permanent / https://trac.zulip.net/
|
|
|
|
SSLEngine on
|
|
SSLCertificateFile /etc/ssl/certs/trac.humbughq.com.crt
|
|
SSLCertificateKeyFile /etc/ssl/private/trac.key
|
|
|
|
SSLCertificateChainFile /etc/ssl/certs/sub.class1.server.ca.pem
|
|
SSLCACertificateFile /etc/ssl/certs/ca.pem
|
|
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
ServerName trac.zulip.net
|
|
|
|
SSLEngine on
|
|
SSLCertificateFile /etc/ssl/certs/trac.zulip.net.crt
|
|
SSLCertificateKeyFile /etc/ssl/private/trac.key
|
|
|
|
SSLCertificateChainFile /etc/ssl/certs/sub.class1.server.ca.pem
|
|
SSLCACertificateFile /etc/ssl/certs/ca.pem
|
|
|
|
Header add Strict-Transport-Security "max-age=15768000"
|
|
Header add X-Frame-Options DENY
|
|
|
|
Alias /chrome/common /home/zulip/trac/htdocs/common
|
|
Alias /chrome/site /home/zulip/trac/htdocs/site
|
|
|
|
<Directory "/home/zulip/trac/htdocs">
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
|
|
WSGIScriptAlias / /home/zulip/trac/cgi-bin/trac.wsgi
|
|
|
|
<Directory /home/zulip/trac>
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
Order deny,allow
|
|
Allow from all
|
|
</Directory>
|
|
|
|
<Location "/">
|
|
AuthType Digest
|
|
AuthName "wiki"
|
|
AuthDigestProvider file
|
|
AuthUserFile /etc/apache2/users/wiki
|
|
Require valid-user
|
|
</Location>
|
|
|
|
ErrorLog /var/log/apache2/error.log
|
|
LogLevel warn
|
|
|
|
CustomLog /var/log/apache2/access.log combined
|
|
ServerSignature On
|
|
</VirtualHost>
|