From 6095c6c21f2529917deecf8f55c58b5d4c04cff2 Mon Sep 17 00:00:00 2001 From: --help Date: Sat, 12 Aug 2023 13:21:59 +0200 Subject: [PATCH] Update default config about the http error --- conf/nginx.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index f446dd0..7e27119 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,7 +6,7 @@ location __PATH__/ { # Default indexes and catch-all index index.html index.php; - try_files $uri $uri/ __PATH__/index.php?$args; + try_files $uri $uri/ __PATH__/index.php?$args =404; # Prevent useless logs location = __PATH__/favicon.ico { @@ -20,12 +20,12 @@ location __PATH__/ { access_log off; } - error_page 404 error/404.html; + # Build error access + error_page 404 /404.html; location = __PATH__/error/404.html { internal; } - # Deny access to hidden files and directories location ~ ^__PATH__/(.+/|)\.(?!well-known\/) { deny all;