This repository has been archived on 2024-01-01. You can view files and clone it, but cannot push or open issues or pull requests.
ansible/roles/webserver/files/etc/apache2/sites-available/wiki.thunix.net.conf

21 lines
807 B
Plaintext

<VirtualHost *:80 *:443>
ServerAdmin webmaster@thunix.net
ServerName wiki.thunix.net
ServerAlias kbguajmip4jlr2k3vpscmvymtxqnft267ox2ij6pdrgb5jcvx3kctkyd.onion
SSLEngine on
DocumentRoot /var/www/wiki.thunix.net
ErrorLog ${APACHE_LOG_DIR}/error.wiki.log
CustomLog ${APACHE_LOG_DIR}/access.wiki.log combined
<Directory /var/www/wiki.thunix.net>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
# Redirect permanent / https://wiki.thunix.net/
SSLCertificateFile /etc/letsencrypt/live/thunix.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/thunix.net/privkey.pem
</VirtualHost>