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

来源:互联网 发布:linux vi编写程序 编辑:程序博客网 时间:2024/05/20 19:29

要想修改apache配置,使得某个目录不能使用php引擎解析,那么配置如下:

 

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

 

这时候,php后缀的文件将默认作为文本文件,可以被用户下载。

 

 

 

原创粉丝点击