From 174eacc41780f7bc56a0198f9742d7d954c9dc60 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Wed, 31 Jul 2024 21:44:56 +0200 Subject: [PATCH] Chore : add 404 page --- nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index 30d9c06..f1e725e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -7,10 +7,10 @@ server { location / { root /usr/share/nginx/html; index index.html; - try_files $uri $uri/ /index.html; + try_files $uri $uri/ /index.html =404; } - # error_page 404 /usr/share/nginx/html/404.html; + error_page 404 /usr/share/nginx/html/404.html; # redirect server error pages to the static page /50x.html #