From 4255b0a4bc9ef98fb74b2bdb954c8cce8503c696 Mon Sep 17 00:00:00 2001 From: --help Date: Sat, 12 Aug 2023 16:52:25 +0200 Subject: [PATCH] Add code error 50X --- conf/nginx.conf | 5 +++++ manifest.toml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 7e27119..45d178d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -25,6 +25,11 @@ location __PATH__/ { location = __PATH__/error/404.html { internal; } + error_page 500 502 503 /50x.html; + location = __PATH__/error/50x.html { + internal; + } + # Deny access to hidden files and directories location ~ ^__PATH__/(.+/|)\.(?!well-known\/) { diff --git a/manifest.toml b/manifest.toml index f17289e..97fd1e1 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "My Webapp" description.en = "Custom Web app with SFTP access to serve static (HTML, CSS, JS) and PHP files" description.fr = "Application Web personnalisée avec accès SFTP pour servir des fichiers statiques (HTML, CSS, JS) et PHP" -version = "1.0~ynh15" +version = "1.0~ynh16" maintainers = []