mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
Try another way with the status code return
This commit is contained in:
parent
5f1dfbd192
commit
a561b9c449
1 changed files with 5 additions and 4 deletions
|
@ -4,7 +4,8 @@ location = /error/403.html {
|
|||
internal;
|
||||
}
|
||||
|
||||
error_page 404 /error/404.html;
|
||||
location = /error/404.html {
|
||||
internal;
|
||||
}
|
||||
error_page 404 @error404;
|
||||
|
||||
location @error404 {
|
||||
rewrite ^ /error/404.html last;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue