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;