diff --git a/roles/webserver/files/etc/apache2/sites-available/thunix.net.conf b/roles/webserver/files/etc/apache2/sites-available/thunix.net.conf index e6e63e1..4900ca4 100644 --- a/roles/webserver/files/etc/apache2/sites-available/thunix.net.conf +++ b/roles/webserver/files/etc/apache2/sites-available/thunix.net.conf @@ -1,12 +1,46 @@ - ServerAdmin webmaster@thunix.net + ServerAdmin webmaster@thunix.net ServerName thunix.net DocumentRoot /var/www/thunix.cf ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined + + Options FollowSymLinks + AllowOverride All + Require all granted + - Order deny,allow - Deny from all - - Redirect permanent / https://thunix.net/ + Order deny,allow + Deny from all + +# Redirect permanent / https://thunix.net/ + + + ServerAdmin webmaster@thunix.net + ServerName thunix.net + DocumentRoot /var/www/thunix.cf + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + Options FollowSymLinks + AllowOverride All + Require all granted + + + Order deny,allow + Deny from all + + + UserDir public_html + UserDir disabled root + + AllowOverride FileInfo AuthConfig Limit Indexes + Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec + Require method GET POST OPTIONS + + +#Include /etc/letsencrypt/options-ssl-apache.conf +SSLCertificateFile /etc/letsencrypt/live/thunix.net/fullchain.pem +SSLCertificateKeyFile /etc/letsencrypt/live/thunix.net/privkey.pem + \ No newline at end of file