From 7029f6eb8586144a8fdf49773440d3f23927c3fa Mon Sep 17 00:00:00 2001 From: --help Date: Sat, 12 Aug 2023 11:30:01 +0200 Subject: [PATCH] Add error 404 code --- conf/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 9f696ae..f446dd0 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -20,6 +20,12 @@ location __PATH__/ { access_log off; } + error_page 404 error/404.html; + location = __PATH__/error/404.html { + internal; + } + + # Deny access to hidden files and directories location ~ ^__PATH__/(.+/|)\.(?!well-known\/) { deny all;