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