您的位置:首页 > 运维架构 > Apache

配置Apache的某个特定目录使其禁用php解析

2010-07-06 12:54 295 查看
要想修改apache配置,使得某个目录不能使用php引擎解析,那么配置如下:

<Directory "/web/jsp/" >
php_flag engine Off
AddOutputFilterByType DEFLATE text/html text/plain text/xml
</Directory>

这时候,php后缀的文件将默认作为文本文件,可以被用户下载。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: