From c516350eb2a0018f2c6a58fd8afdd19a085d1b1c Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 8 Jun 2024 14:20:59 +0100 Subject: [PATCH] Correctly use 404 definition --- nginx.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index f3f1530..f7fb5be 100644 --- a/nginx.conf +++ b/nginx.conf @@ -23,7 +23,11 @@ server { index index.html; try_files $uri $uri/ =404; - error_page 403 =404 /404.html; + # Show 403 as 404 + error_page 403 =404; + + # Custom 404 + error_page 404 /404.html; # Kick malicious clients sooner client_header_timeout 10s;