From 9592a489ca96ead60ef556e6c9c82e4628d67bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szekeres=20Ba=CC=81lint?= Date: Thu, 22 Feb 2018 23:45:49 +0100 Subject: [PATCH] .domain --- public/templates/conf/example.com.conf.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/templates/conf/example.com.conf.html b/public/templates/conf/example.com.conf.html index 4fd2787..50737eb 100644 --- a/public/templates/conf/example.com.conf.html +++ b/public/templates/conf/example.com.conf.html @@ -138,7 +138,7 @@ server { listen {{ isHTTPS() ? '443 ssl' : '80' }}{{ isHTTP2() ? ' http2' : '' }}; listen [::]:{{ isHTTPS() ? '443 ssl' : '80' }}{{ isHTTP2() ? ' http2' : '' }}; - server_name {{ isWWW() ? domain() + ' ' : '' }}*.{{ domain() }}; @@ -162,7 +162,7 @@ server { listen 80; listen [::]:80; - server_name {{ domain() }} *.{{ domain() }}; + server_name .{{ domain() }}; return 301 https://{{ isWWW() ? 'www.' : '' }}{{ domain() }}$request_uri; }