From 004e4148028866eece67b0d57adef60bffa0c4ce Mon Sep 17 00:00:00 2001 From: trochas Date: Thu, 12 Feb 2026 17:28:38 +0100 Subject: [PATCH] ajout gestion erreur nginx --- nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nginx.conf b/nginx.conf index 8200938..d3203f0 100644 --- a/nginx.conf +++ b/nginx.conf @@ -35,4 +35,10 @@ server { location / { try_files $uri $uri/ /index.html; } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } + } \ No newline at end of file