配置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后缀的文件将默认作为文本文件,可以被用户下载。
<Directory "/web/jsp/" >
php_flag engine Off
AddOutputFilterByType DEFLATE text/html text/plain text/xml
</Directory>
这时候,php后缀的文件将默认作为文本文件,可以被用户下载。
相关文章推荐
- apache php配置 虚拟目录 和 虚拟主机 多域名配置 原理解析
- apache php配置 虚拟目录 和 虚拟主机 多域名配置 原理解析
- linux的apache2.4限定某个目录禁止解析PHP及user_agent与PHP相关配置
- Apache配置访问控制、禁用php解析、rewrite伪静态、限定user_agent
- Apache配置,针对某个目录不解析PHP
- 11.28-31 限定某个目录禁止解析php, 限制user_agent, php相关配置
- 限定某个目录禁止解析php、限制user_agent和PHP相关配置
- LAMP环境-限定PHP解析、useragent、PHP相关配置、Apache相关配置
- PHP+MYSQL+APACHE配置详细解析
- apache配置php+多站点+多目录
- PHP学习笔记【4】--apache服务器配置--配置虚拟目录和配置虚拟主机
- Apache禁止解析PHP、禁止指定user_agent、php配置文件
- 限定某个目录禁止解析php,限制user_agent,php相关配置
- 11.28 限定某个目录禁止解析php 11.29 限制user_agent 11.30/11.31 php相关配置
- 限定某个目录禁止解析php、限制user_agent、php相关配置
- 限定某个目录禁止解析php,限制user_agent,php相关配置
- debian Squeeze配置apache php mysql环境,debian中apache目录结构
- 10-4 11 禁止某个目录解析PHP 限制user_agent php相关配置
- Apache禁止解析php 禁止指定user_agent Apache通过rewrite限制某个目录