From 2e528348b7a3f91b9ffe90c0c2bd13ff2d5a48b5 Mon Sep 17 00:00:00 2001 From: EDIflyer Date: Fri, 31 May 2024 12:16:18 +0100 Subject: [PATCH] fix regex as per @lbogdan in https://github.com/NginxProxyManager/nginx-proxy-manager/pull/3121#discussion_r1621959578 --- docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf b/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf index 93ad90f1..a992f315 100644 --- a/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf +++ b/docker/rootfs/etc/nginx/conf.d/include/force-ssl.conf @@ -5,7 +5,7 @@ set $FORCE ""; if ($scheme = "http") { set $FORCE 'H'; } -if ($request_uri !~ "^\/.well-known\/acme-challenge\/(.*)") { +if ($request_uri !~ "^\/\.well-known\/acme-challenge\/(.*)") { set $FORCE "${FORCE}D"; } # If we are http and outside the LetsEncrypt directories redirect to https via 301