From 285725b47798e956e8c77d2429e4db8e9b87f282 Mon Sep 17 00:00:00 2001 From: Adar Nimrod Date: Sat, 24 Apr 2021 18:32:46 +0300 Subject: [PATCH] Upgrade-Insecure-Requests on www.shore.co.il. Redirect to https only if the client asked. --- conf.d/www.shore.co.il.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.d/www.shore.co.il.conf b/conf.d/www.shore.co.il.conf index f7c0375..63c64e7 100644 --- a/conf.d/www.shore.co.il.conf +++ b/conf.d/www.shore.co.il.conf @@ -6,12 +6,12 @@ server { include snippets/ads-txt.conf; include snippets/security-txt.conf; include snippets/www-acme-challenge.conf; - location = / { return 301 https://$host/blog/; } + include snippets/upgrade-secure.conf; + location = / { return 301 http://$host/blog/; } location /repo/ { root /var/www/www.shore.co.il/; autoindex on; } - include snippets/redirect-https.conf; } server { -- GitLab