From b2a6935b2576f2a0462fc0dd404f8a26598f0bac Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sun, 2 May 2021 20:48:01 +0300
Subject: [PATCH] Generic redirect-www snippet.

---
 snippets/redirect-www.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/snippets/redirect-www.conf b/snippets/redirect-www.conf
index 8b29e43..2d89d75 100644
--- a/snippets/redirect-www.conf
+++ b/snippets/redirect-www.conf
@@ -1 +1 @@
-location    / { return 301 https://www.shore.co.il$request_uri; }
+location    / { return 301 https://www.$host$request_uri; }
-- 
GitLab