【发布时间】:2015-03-06 23:52:17
【问题描述】:
我想禁用对特定目录中的 PHP 文件的解析,并了解了如何做到这一点here。问题是我的服务器使用 PHP-FPM,当我尝试在我的 httpd.conf 文件中使用 php_flag 时,我得到了 Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration。
如何使用位于使用 PHP-FPM 的服务器上的 web 根目录上方的 htaccess/httpd.conf 文件禁用对给定 web 可访问目录中的 PHP 文件的解析?
【问题讨论】: