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

29 lines
900 B
Plaintext
Raw Normal View History

2019-02-10 03:53:27 +00:00
<VirtualHost *:80>
ServerAdmin webmaster@thunix.net
ServerName www.thunix.net
DocumentRoot /var/www/thunix.net
2019-02-10 03:53:27 +00:00
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@thunix.net
ServerName www.thunix.net
DocumentRoot /var/www/thunix.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/www.thunix.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.thunix.net/privkey.pem
</VirtualHost>
</IfModule>