Handle_errors not working

The php_fastcgi directive has built-in try_files logic that rewrites all requests to files that don’t exist on disk to index.php. Modern PHP apps work by using index.php as the entrypoint for doing their own routing. If your PHP app doesn’t work this way, then you’ll need to configure php_fastcgi to turn off the index.php rewrite. See the docs:

2 Likes