From e0ec1921818aab8f7accb79912b9c4f12e18e870 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 10 May 2023 15:24:37 -0600 Subject: [PATCH] Passing Host header via nginx proxy. --- nginx.conf | 2 ++ nginx.dev.conf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/nginx.conf b/nginx.conf index 0c01f23a..8719d796 100644 --- a/nginx.conf +++ b/nginx.conf @@ -25,6 +25,8 @@ http { error_page 504 /error/50x.html; server { + proxy_pass_header Host; + location ^~ /error/ { internal; alias /var/www/; diff --git a/nginx.dev.conf b/nginx.dev.conf index f747b86d..48e4be09 100644 --- a/nginx.dev.conf +++ b/nginx.dev.conf @@ -20,6 +20,8 @@ http { } server { + proxy_pass_header Host; + location /favicon.ico { alias /etc/nginx/favicon.ico; }