2023-06-28 18:55:19 +00:00
|
|
|
<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
|
2023-06-28 19:10:05 +00:00
|
|
|
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/">
|
2023-06-28 18:55:19 +00:00
|
|
|
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>
|