虚拟目录
<Directory "D:/dangdang">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
<VirtualHost *:8888>
ServerAdmin kk@linuxidc.com
DocumentRoot "D:/dangdang"
ServerName www.dangdang.com
ServerAlias dangdang.com
ErrorLog "logs/www.linuxidc.net-error_log"
CustomLog "logs/www.linuxidc.net-access_log" common
</VirtualHost>
别名配置
alias /www/ "D:/webroot/phpMyAdmin/"
<Directory "D:/webroot/phpMyAdmin/">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
备注:由于xampp的特殊配置,会导致直接添加上面的别名配置,会产生403不允许访问的问题,其实是xampp统一配置了的问题,所以我们应该修改httpd.conf的部分的内容
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
# deny from all # 原先的默认设置
Allow from all # 改成 Allow 问题解决
</Directory>