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;