From 1a84f6b767782659f4dd5f1040382803974750c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn?= Date: Mon, 10 Aug 2020 15:58:47 +0200 Subject: [PATCH] adding #28 --- resources/nginx/templates/layouts/no-ssl.blade.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/nginx/templates/layouts/no-ssl.blade.php b/resources/nginx/templates/layouts/no-ssl.blade.php index 314959f..6564f68 100644 --- a/resources/nginx/templates/layouts/no-ssl.blade.php +++ b/resources/nginx/templates/layouts/no-ssl.blade.php @@ -1,9 +1,11 @@ +@if ($redirect_www) server { listen 80; listen [::]:80; - server_name {{ $domain }}@if ($redirect_www) www.{{ $domain }}@endif; + server_name {{ $domain }} www.{{ $domain }}; return 301 http://{{ $domain }}$request_uri; } +@endif server { listen 80;