Update 'roles/webserver/files/etc/apache2/sites-available/www.thunix.net.conf'
This commit is contained in:
parent
542409b76c
commit
aa5f353490
|
@ -1,9 +1,14 @@
|
|||
<VirtualHost *:80>
|
||||
<VirtualHost *:80 *:443>
|
||||
ServerAdmin webmaster@thunix.net
|
||||
ServerName www.thunix.net
|
||||
DocumentRoot /var/www/thunix.cf
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
<Directory /var/www/thunix.cf>
|
||||
Options FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
<Directorymatch "^/.*/\.git/">
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
|
@ -17,6 +22,8 @@
|
|||
Require method GET POST OPTIONS
|
||||
</Directory>
|
||||
</IfModule>
|
||||
Redirect permanent / https://www.thunix.net/
|
||||
|
||||
# Redirect permanent / https://www.thunix.net/
|
||||
#Include /etc/letsencrypt/options-ssl-apache.conf
|
||||
SSLCertificateFile /etc/letsencrypt/live/thunix.net/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/thunix.net/privkey.pem
|
||||
</VirtualHost>
|
Reference in New Issue