adds =404 to end of try_files directive

This commit is contained in:
2026-06-23 08:18:46 +01:00
parent 4a9649f096
commit 76081fd88f
+1 -1
View File
@@ -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;