From 69e57cae028089b955cecd18d006e8ddddd1bd9a Mon Sep 17 00:00:00 2001 From: Tom Noogen Date: Wed, 14 Jun 2017 14:37:22 -0500 Subject: [PATCH] enable ssl server name --- files/etc/nginx/sites-enabled/server.conf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/files/etc/nginx/sites-enabled/server.conf b/files/etc/nginx/sites-enabled/server.conf index ed0ca9a..19dc2d9 100644 --- a/files/etc/nginx/sites-enabled/server.conf +++ b/files/etc/nginx/sites-enabled/server.conf @@ -224,8 +224,7 @@ server { location /cmd/resize { internal; - proxy_ssl_name $myhost; - proxy_set_header Host $myhost; + proxy_ssl_server_name on; proxy_pass $image_uri$is_args$args; proxy_cache_key $image_uri$is_args$args$slice_range; include /etc/nginx/sites-enabled/proxy-hide-headers.common; @@ -246,8 +245,7 @@ server { location /cmd/crop { internal; - proxy_ssl_name $myhost; - proxy_set_header Host $myhost; + proxy_ssl_server_name on; proxy_pass $image_uri$is_args$args; proxy_cache_key $image_uri$is_args$args$slice_range; include /etc/nginx/sites-enabled/proxy-hide-headers.common;