mirror of https://github.com/zulip/zulip.git
40 lines
960 B
Plaintext
40 lines
960 B
Plaintext
<VirtualHost *:80>
|
|
ServerName wiki.humbughq.com
|
|
Redirect permanent / https://wiki.humbughq.com/
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
ServerName wiki.humbughq.com
|
|
|
|
SSLEngine on
|
|
SSLCertificateFile /etc/apache2/certs/humbug-self-signed.crt
|
|
SSLCertificateKeyFile /etc/apache2/certs/humbug-self-signed.key
|
|
|
|
Header add Strict-Transport-Security "max-age=15768000"
|
|
Header add X-Frame-Options DENY
|
|
|
|
RewriteEngine On
|
|
ProxyPreserveHost On
|
|
ProxyRequests Off
|
|
|
|
<Proxy *>
|
|
Order deny,allow
|
|
Allow from all
|
|
|
|
AuthType Digest
|
|
AuthName "wiki"
|
|
AuthDigestProvider file
|
|
AuthUserFile /etc/apache2/users/wiki
|
|
Require valid-user
|
|
</Proxy>
|
|
|
|
ProxyPassReverse / http://127.0.0.1:5001
|
|
RewriteRule ^(.*) http://127.0.0.1:5001$1 [P]
|
|
|
|
ErrorLog /var/log/apache2/error.log
|
|
LogLevel warn
|
|
|
|
CustomLog /var/log/apache2/access.log combined
|
|
ServerSignature On
|
|
</VirtualHost>
|