From bbf67e0ed673ebab904d32559cd1ed2f306d8bf5 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sat, 9 Mar 2019 12:18:47 +0100 Subject: [PATCH] update config --- etc/apache2.conf | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/etc/apache2.conf b/etc/apache2.conf index c9cf3f8..ab96afa 100644 --- a/etc/apache2.conf +++ b/etc/apache2.conf @@ -3,21 +3,37 @@ ServerAlias www.m6w6.name ServerAdmin webmaster@m6w6.name - DocumentRoot /var/www/m6w6 + DocumentRoot /var/www/m6w6/public - - Options Indexes FollowSymLinks MultiViews + AllowOverride None Require all granted + + Use m6w6_host_defs + + Define NO_SSL_REDIRECT + + + RedirectPermanent / https://m6w6.name/ + + Use m6w6_host_defs RedirectPermanent / https://m6w6.name/ + + Use m6w6_host_defs + Include "bits/hsts-nosub" + SSLEngine on + SSLUseStapling on + SSLCertificateFile /etc/letsencrypt/live/m6w6.name/fullchain.pem + SSLCertificateKeyFile /etc/letsencrypt/live/m6w6.name/privkey.pem + Use m6w6_host_defs Include "bits/hsts-nosub" -- 2.30.2