<VirtualHost *:80> DocumentRoot "D:\WWW\a" ServerName a.com ServerAlias phpStudy.NET <Directory "D:\WWW\a"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>
<VirtualHost *:81> DocumentRoot "D:\WWW\b" ServerName b.com ServerAlias <Directory "D:\WWW\b"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>
<VirtualHost *:82> DocumentRoot "D:\WWW\c" ServerName c.com ServerAlias <Directory "D:\WWW\c"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost> 若存在,则配置成功。