<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm #表示首页文件
Alias /wamp_php D:/Tommy_Codes/wamp_php #映射虚拟目录
<Directory D:/Tommy_Codes/wamp_php> #设置访问权限
Order allow,deny
Allow from all
</Directory>
</IfModule>
访问时使用的url的格式为: http://localhost/wamp_php/xxxx.php
3.3. Order allow,deny的含义:
Order allow,deny //这里只有两种选项,allow表示允许的ip,deny表示拒绝的ip
//这里表示先处理allow的,在处理deny的
//如果写成 Order deny,allow则表示先处理deny的,再处理allow的
Allow from all //允许所有的ip
deny from 10.10.0.1 //拒绝来自ip 10.10.0.1的方法,
//所以最终的效果是禁止来之10.10.0.1的访问