From 76081fd88fa926a77f0dae3e131b9ff503c392ee Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Tue, 23 Jun 2026 08:18:46 +0100 Subject: [PATCH] adds =404 to end of try_files directive --- http/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/nginx.conf b/http/nginx.conf index 4836efd..c788f22 100644 --- a/http/nginx.conf +++ b/http/nginx.conf @@ -27,7 +27,7 @@ http { location / { root /usr/share/nginx/html; - try_files $uri $uri.html $uri/index.html $uri.php $uri/index.php; + try_files $uri $uri.html $uri/index.html $uri.php $uri/index.php =404; } error_page 404 /error.html;