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

30 lines
1.0 KiB
Plaintext
Raw Normal View History

<VirtualHost *:80>
ServerAdmin webmaster@thunix.net
ServerName stats.thunix.net
DocumentRoot /var/www/stats.thunix.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
</VirtualHost>
## DO NOT ENABLE UNTIL CERTBOT HAS BEEN RAN FOR STATS.THUNIX.NET! (Remove this notice once enabled)
#<IfModule mod_ssl.c>
#<VirtualHost *:443>
# ServerAdmin webmaster@thunix.net
# ServerName stats.thunix.net
# DocumentRoot /var/www/stats.thunix.net
# ErrorLog ${APACHE_LOG_DIR}/error.log
# CustomLog ${APACHE_LOG_DIR}/access.log combined
# <Directorymatch "^/.*/\.git/">
# Order deny,allow
# Deny from all
# </Directorymatch>
# SSLCertificateFile /etc/letsencrypt/live/stats.thunix.net/fullchain.pem
# SSLCertificateKeyFile /etc/letsencrypt/live/stats.thunix.net/privkey.pem
# Include /etc/letsencrypt/options-ssl-apache.conf
#</VirtualHost>
#</IfModule>