From 989ab04f5a783bf9a56ab4da916816a7ea4beaeb Mon Sep 17 00:00:00 2001 From: Pieter Smit Date: Mon, 4 Mar 2024 18:36:04 +0200 Subject: [PATCH] Adding proxy_pass_header to nginx.conf --- certbot-nginx/nginx.conf | 1 + nginx/nginx.conf | 1 + 2 files changed, 2 insertions(+) diff --git a/certbot-nginx/nginx.conf b/certbot-nginx/nginx.conf index bcd35d8..df2cfdb 100644 --- a/certbot-nginx/nginx.conf +++ b/certbot-nginx/nginx.conf @@ -67,6 +67,7 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $server_name; + proxy_pass_header Server; } } } diff --git a/nginx/nginx.conf b/nginx/nginx.conf index ca79395..482011e 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -66,6 +66,7 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $server_name; + proxy_pass_header Server; } }