apache2.2控制目录文件访问设置

1.apache2.2控制目录文件访问需求

红框可以访问,其他不能访问

 2.apache2.2具体正则配置

<locationMatch ^/f/user/Panorama/81/581/(group|scene_sound|fishyes|sphere) >
order allow,deny
allow from all
</locationmMatch>
<locationMatch ^/f/user/Panorama/81/581/*\.preview_\.jpg$ >
order allow,deny
allow from all
</locationmMatch>
<locationMatch ^/f/user/Panorama/81/581/ >
order allow,deny
deny from all
</locationMatch>

posted @ 2017-02-13 16:04  爱尔兰时空  阅读(1685)  评论(0编辑  收藏  举报