new changes

This commit is contained in:
Niranjan
2026-04-07 10:35:44 +05:30
parent 097087519b
commit 88424b8836
5 changed files with 60 additions and 13 deletions

View File

@@ -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)