Feb 6, 2018
0
Level 3
Reason nginx config allows all .php files?
Noticed in my error logs that any time a .php file was requested that doesn't exist, it was logging an error rather than going to a 404 page.
It seems that by default Forge allows all .php requests. Adding a
try_files $uri /index.php =404;
fixes the issue, but I'm wondering if there is a reason forge allows this by default? And if there is a better fix that doesn't involve adding this to server/location context in nginx.conf.
Please or to participate in this conversation.