IMHO you should not do that on backend.
You should do that in nginx's conf or what else you use for frontend.
2013/1/16 David Blank-Edelman <dnblankedelman@gmail.com>
> Hi-
> I suspect this is a simple (read: stupid) question, but is there a
> PHP-FPM equivalent to the mod_php directive for restricting PHP execution,
> i.e.:
>
> <Directory ${WWWDOCROOT}>
> ...
> php_admin_flag engine off
>
> ...
> </Directory>
>
> I realize I can block access to files with a .php suffix so it never reaches FPM, but is there a closer equivalent? Thanks!
>
> -- dNb
>
>
>
You should do that in nginx's conf or what else you use for frontend.
2013/1/16 David Blank-Edelman <dnblankedelman@gmail.com>
> Hi-
> I suspect this is a simple (read: stupid) question, but is there a
> PHP-FPM equivalent to the mod_php directive for restricting PHP execution,
> i.e.:
>
> <Directory ${WWWDOCROOT}>
> ...
> php_admin_flag engine off
>
> ...
> </Directory>
>
> I realize I can block access to files with a .php suffix so it never reaches FPM, but is there a closer equivalent? Thanks!
>
> -- dNb
>
>
>