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; }