Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: Restrict PHP execution

$
0
0
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
>
>
>

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>