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>

你可能感兴趣的:(apache)