From bfe4971587c5b0204c3481f831b3130c7b4eae50 Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Sat, 9 Aug 2025 12:07:15 +0200 Subject: [PATCH] Ensure relative redirects When the container port :80 is exposed as :8080 on the host, nginx redirects to http://localhost:80/login.pl with a relative path, instead of http://localhost:8080/login.pl; the container isn't bound to :80, so that request fails... --- with-proxy/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/with-proxy/nginx.conf b/with-proxy/nginx.conf index f9e528d..a8f5cc6 100644 --- a/with-proxy/nginx.conf +++ b/with-proxy/nginx.conf @@ -51,7 +51,7 @@ http { } location = / { - return 301 /login.pl; + return 301 login.pl; } # JS & CSS