From 08a58729a2febca4d84cf6d3c08051e55507cdfc Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Thu, 17 Aug 2023 19:33:37 +0200 Subject: [PATCH] Change - once again - the nginx error build --- conf/nginx-code-error.conf | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/conf/nginx-code-error.conf b/conf/nginx-code-error.conf index 5807407..074b013 100644 --- a/conf/nginx-code-error.conf +++ b/conf/nginx-code-error.conf @@ -1,11 +1,8 @@ # Build error access error_page 403 /error/403.html; -location = /error/403.html { +error_page 404 /error/404.html; + +location ^/ /error/ { internal; -} - -error_page 404 @error404; - -location @error404 { - rewrite ^ /error/404.html last; + root /var/www/my_webapp__3/www/; }