为什么我自己配置的域名,和localhost一个效果不能转到指定的目录下
<VirtualHost *:80> DocumentRoot E:\HTML5\a ServerName a1.com <Directory "E:\HTML5\a"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:80> DocumentRoot E:/HTML5/b ServerName b1.com <Directory "E:/HTML5/b"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:80> DocumentRoot c:/wamp/www ServerName localhost <Directory "c:/wamp/www"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost>
127.0.0.1 a1.com
127.0.0.1 b1.com
额,为啥两个端口号都是80
有冲突吗?
127.0.0.1 a1.com
127.0.0.1 b1.com
有什么问题?