#IncludeOptional "D:/wamp/vhosts/*" Include "D:/wamp/alias/*" ####配置虚拟主机 NameVirtualHost *:80 <VirtualHost *:80> ServerName localhost DocumentRoot "D:/www" </VirtualHost> <Directory "D:/www" > Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> NameVirtualHost *:80 <VirtualHost *:80> ServerName www.a.com DocumentRoot "D:/www/aaa/test/app" </VirtualHost> <Directory "D:/www/aaa/test/app" > Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> NameVirtualHost *:80 <VirtualHost *:80> ServerName www.mdata.com DocumentRoot "D:/www/data" </VirtualHost> <Directory "D:/www/data" > Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory>