From a3a8c014620c8131bdd98f889a2638e55c30c84e Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Wed, 13 May 2020 20:03:24 +0300 Subject: add missing https check --- deployment/websites/templates/vhost_www.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/deployment/websites/templates/vhost_www.conf b/deployment/websites/templates/vhost_www.conf index c7634759..79ac0ee1 100644 --- a/deployment/websites/templates/vhost_www.conf +++ b/deployment/websites/templates/vhost_www.conf @@ -9,4 +9,5 @@ ErrorDocument 404 /404.php php_value short_open_tag false # switch all to https +RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] -- cgit v1.2.1