1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00

Add error 404 code

This commit is contained in:
--help 2023-08-12 11:30:01 +02:00
parent bf5d3ed5d5
commit 7029f6eb85

View file

@ -20,6 +20,12 @@ location __PATH__/ {
access_log off;
}
error_page 404 error/404.html;
location = __PATH__/error/404.html {
internal;
}
# Deny access to hidden files and directories
location ~ ^__PATH__/(.+/|)\.(?!well-known\/) {
deny all;