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>

原文地址:https://www.cnblogs.com/zhanmeiliang/p/6394193.html