apache 添加虚拟目录

参考  http://stackoverflow.com/questions/10873295/forbidden-you-dont-have-permission-to-access-on-this-server

修改目录访问的全局配置<Directory />段,改为

<Directory />
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride none
    Order allow,deny
    Allow from all
</Directory>

然后在httpd.conf结尾添加

Alias /w1 "G:/php/w1"
<Directory "G:/php/w1">
    Options Indexes MultiViews
    AllowOverride none
    Order allow,deny
    Allow from all
</Directory>

posted @ 2012-11-05 11:11  SmartDog  阅读(203)  评论(0编辑  收藏  举报