From aa01a85550ba33c3e1b7b68b7b27448b955d96ef Mon Sep 17 00:00:00 2001 From: Zoey Date: Fri, 12 Jan 2024 17:35:34 +0100 Subject: [PATCH] fix http challenge --- .../usr/local/nginx/conf/conf.d/include/acme-challenge.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootfs/usr/local/nginx/conf/conf.d/include/acme-challenge.conf b/rootfs/usr/local/nginx/conf/conf.d/include/acme-challenge.conf index 3c1b4c68..a12a0946 100644 --- a/rootfs/usr/local/nginx/conf/conf.d/include/acme-challenge.conf +++ b/rootfs/usr/local/nginx/conf/conf.d/include/acme-challenge.conf @@ -1,8 +1,8 @@ -location ^~ /.well-known/acme-challenge/ { +location /.well-known/acme-challenge/ { auth_basic off; auth_request off; allow all; - root /tmp/acme-challenge; + alias /tmp/acme-challenge/; } location = /.well-known/acme-challenge/ { @@ -13,6 +13,6 @@ location = /nftd { return 301 /nftd/; } -location ^~ /nftd/ { +location /nftd/ { alias /nftd/; }