diff --git a/conf/nginx.conf b/conf/nginx.conf index 9f696ae..f446dd0 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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;