Update 'roles/webserver/files/etc/apache2/sites-available/rpm.thunix.net.conf'

This commit is contained in:
deepend 2023-06-28 19:10:40 +00:00
parent 4f68c4db91
commit f4570f2436
1 changed files with 7 additions and 4 deletions

View File

@ -1,11 +1,14 @@
<VirtualHost *:80>
ServerAdmin webmaster@thunix.net
<VirtualHost *:80 *:443>
ServerAdmin webmaster@thunix.net
ServerName rpm.thunix.net
SSLEngine on
DocumentRoot /var/www/rpm.thunix.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
Order deny,allow
Deny from all
</Directorymatch>
SSLCertificateFile /etc/letsencrypt/live/thunix.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/thunix.net/privkey.pem
</VirtualHost>