From 9e86f5c1029a3990645c25e5882a1a54c73ad706 Mon Sep 17 00:00:00 2001 From: Maks Jopek Date: Sat, 11 Jul 2026 01:41:58 +0200 Subject: Fix nginx extensionless .html --- puszcza.jopek.eu.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'puszcza.jopek.eu.conf') diff --git a/puszcza.jopek.eu.conf b/puszcza.jopek.eu.conf index d05077a..6ffb1a6 100644 --- a/puszcza.jopek.eu.conf +++ b/puszcza.jopek.eu.conf @@ -3,7 +3,7 @@ server { listen 443 ssl; listen [::]:443 ssl; http2 on; - index index.html index.php; + index index.html; location /admin { auth_basic "Uploaded files"; @@ -20,8 +20,8 @@ server { } location / { - root /var/www/puszcza.jopek.eu/uploads; - try_files $uri $uri.html $uri/; + root /var/www/puszcza.jopek.eu/uploads/; + try_files $uri $uri.html $uri/ =404; } ssl_certificate /etc/acme.sh/jopek.eu_ecc/fullchain.cer; -- cgit v1.3.1