mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
Add code error 50X
This commit is contained in:
parent
7083a50ec8
commit
4255b0a4bc
2 changed files with 6 additions and 1 deletions
|
@ -25,6 +25,11 @@ location __PATH__/ {
|
||||||
location = __PATH__/error/404.html {
|
location = __PATH__/error/404.html {
|
||||||
internal;
|
internal;
|
||||||
}
|
}
|
||||||
|
error_page 500 502 503 /50x.html;
|
||||||
|
location = __PATH__/error/50x.html {
|
||||||
|
internal;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Deny access to hidden files and directories
|
# Deny access to hidden files and directories
|
||||||
location ~ ^__PATH__/(.+/|)\.(?!well-known\/) {
|
location ~ ^__PATH__/(.+/|)\.(?!well-known\/) {
|
||||||
|
|
|
@ -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.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"
|
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 = []
|
maintainers = []
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue