一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

apache指定目录禁止执行php文件

时间:2013-04-22 编辑:简简单单 来源:一聚教程网

htaccess禁止php,htm

php_flag engine off

 代码如下 复制代码


order allow,deny
deny from all


order allow,deny
deny from all


order allow,deny
deny from all

  
    order allow,deny    
    deny from all    

  
    order allow,deny    
    deny from all    

apache中直接定义

 代码如下 复制代码


php_flag engine off


 
 Order allow,deny
 Deny from all
 

nginx

 代码如下 复制代码

location /data/ {
location ~ .*.(php)?$ {
deny all;
}
}

热门栏目