From 9bc804a8fd1231dfdb096038c60e64cc627b0a44 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 30 Jan 2021 12:11:38 +0200 Subject: [PATCH] Use the redirect to www snippet in the default site. --- conf.d/default.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.d/default.conf b/conf.d/default.conf index 43f0746..2b49994 100644 --- a/conf.d/default.conf +++ b/conf.d/default.conf @@ -2,12 +2,12 @@ server { listen 80 default_server; listen [::]:80 default_server; include snippets/www-acme-challenge.conf; - location / { return 301 https://www.shore.co.il$request_uri; } + include snippets/redirect-www.conf; } server { listen 443 ssl http2 default_server; listen [::]:443 ssl http2 default_server; include snippets/ssl.conf; - location / { return 301 https://www.shore.co.il$request_uri; } + include snippets/redirect-www.conf; } -- GitLab