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; access_log off;
} }
error_page 404 error/404.html;
location = __PATH__/error/404.html {
internal;
}
# Deny access to hidden files and directories # Deny access to hidden files and directories
location ~ ^__PATH__/(.+/|)\.(?!well-known\/) { location ~ ^__PATH__/(.+/|)\.(?!well-known\/) {
deny all; deny all;