ansible/roles/webserver/files/etc/apache2/sites-available/staticadventures.netlib.re....

29 lines
1.0 KiB
Plaintext
Raw Normal View History

2019-03-26 23:41:03 +00:00
<VirtualHost *:80>
ServerAdmin webmaster@thunix.net
ServerName staticadventures.netlib.re
DocumentRoot /var/www/staticadventures.netlib.re
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
</VirtualHost>
2019-03-30 15:52:35 +00:00
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@thunix.net
ServerName staticadventures.netlib.re
DocumentRoot /var/www/staticadventures.netlib.re
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/staticadventures.netlib.re/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/staticadventures.netlib.re/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>