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

Restrict PHP execution

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