ansible/roles/webserver/files/etc/apache2/sites-available/wiki.thunix.net.conf

20 lines
728 B
Plaintext
Raw Normal View History

<VirtualHost *:80 *:443>
2019-06-28 14:57:10 +00:00
ServerAdmin webmaster@thunix.net
2019-09-09 12:49:55 +00:00
ServerName wiki.thunix.net
SSLEngine on
2019-06-28 14:57:10 +00:00
DocumentRoot /var/www/wiki.thunix.net
2021-09-28 14:21:34 +00:00
ErrorLog ${APACHE_LOG_DIR}/error.wiki.log
CustomLog ${APACHE_LOG_DIR}/access.wiki.log combined
2019-06-28 23:14:03 +00:00
<Directory /var/www/wiki.thunix.net>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
2019-06-28 14:57:10 +00:00
<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>