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/; }