new changes
This commit is contained in:
@@ -8,11 +8,12 @@ server {
|
||||
error_page 404 /404.html;
|
||||
error_page 502 /502.html;
|
||||
|
||||
# ACME HTTP-01 (Let's Encrypt). Prefix match wins over regex locations.
|
||||
# ACME HTTP-01 (Let's Encrypt). Prefix match beats regex; explicit root; no try_files so server error_page cannot mask failures.
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
root {ROOT_PATH};
|
||||
default_type "text/plain";
|
||||
allow all;
|
||||
try_files $uri =404;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
# Force HTTPS (skipped for ACME — see if block)
|
||||
|
||||
Reference in New Issue
Block a user