From 64bfef1b2fd22396e7bfbe1b053ba7c4f8a96013 Mon Sep 17 00:00:00 2001 From: Campbell Vertesi Date: Fri, 24 Feb 2017 16:33:32 +0100 Subject: [PATCH] Update nginx.tmpl --- dork_compose/auxiliary/proxy/dockergen/nginx.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dork_compose/auxiliary/proxy/dockergen/nginx.tmpl b/dork_compose/auxiliary/proxy/dockergen/nginx.tmpl index 99b1e86..5820849 100644 --- a/dork_compose/auxiliary/proxy/dockergen/nginx.tmpl +++ b/dork_compose/auxiliary/proxy/dockergen/nginx.tmpl @@ -134,7 +134,7 @@ upstream {{ $host }} { {{ if eq $https_method "redirect" }} server { - server_name {{ $host }}; + server_name .{{ $host }}; listen 80 {{ $default_server }}; access_log /var/log/nginx/access.log vhost; return 301 https://$host$request_uri; @@ -142,7 +142,7 @@ server { {{ end }} server { - server_name {{ $host }}; + server_name .{{ $host }}; listen 443 ssl http2 {{ $default_server }}; access_log /var/log/nginx/access.log vhost; @@ -189,7 +189,7 @@ server { {{ if or (not $is_https) (eq $https_method "noredirect") }} server { - server_name {{ $host }}; + server_name .{{ $host }}; listen 80 {{ $default_server }}; access_log /var/log/nginx/access.log vhost; @@ -215,7 +215,7 @@ server { {{ if (and (not $is_https) (exists "/etc/nginx/certs/default.crt") (exists "/etc/nginx/certs/default.key")) }} server { - server_name {{ $host }}; + server_name .{{ $host }}; listen 443 ssl http2 {{ $default_server }}; access_log /var/log/nginx/access.log vhost; return 500;