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

30 lines
957 B
Plaintext
Raw Normal View History

2018-12-21 14:50:46 +00:00
<VirtualHost *:80>
ServerAdmin webmaster@thunix.net
2018-12-21 14:50:46 +00:00
ServerName thunix.cf
ServerAlias kbguajmip4jlr2k3vpscmvymtxqnft267ox2ij6pdrgb5jcvx3kctkyd.onion
DocumentRoot /var/www/thunix.cf
2018-12-21 14:50:46 +00:00
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
2018-12-21 14:50:46 +00:00
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@thunix.net
ServerName thunix.cf
DocumentRoot /var/www/thunix.cf
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/thunix.cf/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/thunix.cf/privkey.pem
</VirtualHost>
</IfModule>