mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
The new puppet.conf file has to be moved into place manually. (imported from commit 253d9a95386dae8c803a998ce2dc7e8be40c880a)
58 lines
1.3 KiB
Plaintext
58 lines
1.3 KiB
Plaintext
<VirtualHost *:80>
|
|
ServerName wiki.zulip.net
|
|
Redirect permanent / https://wiki.zulip.net/
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
ServerName wiki.zulip.net
|
|
|
|
SSLEngine on
|
|
SSLCertificateFile /etc/ssl/certs/wiki.zulip.net.crt
|
|
SSLCertificateKeyFile /etc/ssl/private/wiki.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
|
|
|
|
<Location "/">
|
|
AuthType Digest
|
|
AuthName "wiki"
|
|
AuthDigestProvider file
|
|
AuthUserFile /etc/apache2/users/wiki
|
|
Require valid-user
|
|
|
|
</Location>
|
|
|
|
Alias /wiki /var/lib/mediawiki/index.php
|
|
RewriteEngine on
|
|
RewriteRule ^(/)?$ /wiki [L,R=301]
|
|
|
|
|
|
ErrorLog /var/log/apache2/error.log
|
|
LogLevel warn
|
|
|
|
CustomLog /var/log/apache2/access.log combined
|
|
ServerSignature On
|
|
|
|
Alias /w /var/lib/mediawiki
|
|
|
|
<Directory /var/lib/mediawiki/>
|
|
Options +FollowSymLinks
|
|
AllowOverride All
|
|
order allow,deny
|
|
allow from all
|
|
</Directory>
|
|
|
|
# some directories must be protected
|
|
<Directory /var/lib/mediawiki/config>
|
|
Options -FollowSymLinks
|
|
AllowOverride None
|
|
</Directory>
|
|
<Directory /var/lib/mediawiki/upload>
|
|
Options -FollowSymLinks
|
|
AllowOverride None
|
|
</Directory>
|
|
</VirtualHost>
|