diff --git a/conf/nginx.conf b/conf/nginx.conf index f446dd0..7e27119 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,7 +6,7 @@ location __PATH__/ { # Default indexes and catch-all index index.html index.php; - try_files $uri $uri/ __PATH__/index.php?$args; + try_files $uri $uri/ __PATH__/index.php?$args =404; # Prevent useless logs location = __PATH__/favicon.ico { @@ -20,12 +20,12 @@ location __PATH__/ { access_log off; } - error_page 404 error/404.html; + # Build error access + error_page 404 /404.html; location = __PATH__/error/404.html { internal; } - # Deny access to hidden files and directories location ~ ^__PATH__/(.+/|)\.(?!well-known\/) { deny all;