在Apache/conf/vhosts.conf文件中增加:
<span style="font-size:14px;"><VirtualHost *:80>
DocumentRoot "D:\wwwroot" //网站根目录
ServerName abc.com
ServerAlias www.abc.com
<Directory "D:\wwwroot">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost></span>