WDlinux官方论坛's Archiver

lu314401633 发表于 2014-1-22 22:03

我在.htaccess写了一些规则禁止下载.htaccess

<FilesMatch ".(zip|htaccess|htpasswd|ini|php|sh)$">
Order Allow,Deny
Deny from all
</FilesMatch>
但是文件还是能被下载的?

admin 发表于 2014-1-25 23:08

用的是N+A?

wdcp_syl 发表于 2015-6-2 11:51

[b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=32642&ptid=8262]2#[/url] [i]admin[/i] [/b]
我用的是Nginx+Apache服务器,也遇到同样的问题,有哪位大神知道为什么?

cnbjx 发表于 2015-6-4 19:42

试试nginx 在 server 里加上这个

location ~ ^.*\.(zip|htaccess|htpasswd|ini|php|sh)$ {
        deny all;
}

xuandun 发表于 2015-6-5 10:33

使用Apache再说

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.