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 4900ca4..fd0b621 100644 --- a/roles/webserver/files/etc/apache2/sites-available/thunix.net.conf +++ b/roles/webserver/files/etc/apache2/sites-available/thunix.net.conf @@ -1,6 +1,8 @@ - + ServerAdmin webmaster@thunix.net ServerName thunix.net + SSLEngine on + ServerAlias i5pmp326di6rgydkk4vzjbevncwkdreli2aak72btpg7sofhsadqqeid.onion thunix.tilde DocumentRoot /var/www/thunix.cf ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined @@ -10,37 +12,13 @@ Require all granted - 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 + Order deny,allow + Deny from all + + RewriteEngine On + # Redirect permanent / https://thunix.net + + SSLCertificateFile "/etc/letsencrypt/live/thunix.net/cert.pem" + SSLCertificateChainFile "/etc/letsencrypt/live/thunix.net/fullchain.pem" + SSLCertificateKeyFile "/etc/letsencrypt/live/thunix.net/privkey.pem" \ No newline at end of file