apache和ngnix禁止访问文件
1.ngnix
location ~ .*\.(inc)$
{
deny all;
}
http://www.lanfeng.net/archives/30550.html
2、apache
<Files ~ "\.inc$">
Order allow,deny
Deny from all
</Files>
http://jingyan.baidu.com/album/4b07be3c193d1648b380f3a9.html?picindex=1&dsp=pc