TrafeX/docker-php-nginx

Not showing error 404

Closed this issue · 1 comments

Every url that file no exists, the image show the index.php instead error 404

Hi @edsonlcandido ,

That's correct and caused by this try_files: https://github.com/TrafeX/docker-php-nginx/blob/master/config/conf.d/default.conf#L17
If you run a PHP application, the application should render the 404. If you don't want this behavior, you can remove that location block.