httpd-vhosts文件如下:
#mallpsi
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "D:/wamp531/www/mallpsi"
ServerName mallpsi.com
DirectoryIndex index.php
# This should be omitted in the production environment
SetEnv APPLICATION_ENV development
<Directory "D:/wamp531/www/mallpsi">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>#ibmstyle
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "D:/wamp531/www/ibmstyle"
ServerName ibmstyle.com
DirectoryIndex index.php http://ibmstyle.com/index.php
# This should be omitted in the production environment
SetEnv APPLICATION_ENV development
<Directory "D:/wamp531/www/ibmstyle">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>#kuuqii
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "D:/wamp531/www/kuuqii"
ServerName kuuqii.com
DirectoryIndex index.php http://kuuqii.com/index.php
# This should be omitted in the production environment
SetEnv APPLICATION_ENV development
<Directory "D:/wamp531/www/kuuqii">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>hosts文件如下:127.0.0.1 kuuqii.com
127.0.0.1 mallpsi.com
127.0.0.1 ibmstyle.com
127.0.0.1 www.kuuqii.com
127.0.0.1 www.mallpsi.com
127.0.0.1 www.ibmstyle.com127.0.0.1 localhost
#mallpsi
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "D:/wamp531/www/mallpsi"
ServerName mallpsi.com
DirectoryIndex index.php
# This should be omitted in the production environment
SetEnv APPLICATION_ENV development
<Directory "D:/wamp531/www/mallpsi">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>#ibmstyle
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "D:/wamp531/www/ibmstyle"
ServerName ibmstyle.com
DirectoryIndex index.php http://ibmstyle.com/index.php
# This should be omitted in the production environment
SetEnv APPLICATION_ENV development
<Directory "D:/wamp531/www/ibmstyle">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>#kuuqii
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "D:/wamp531/www/kuuqii"
ServerName kuuqii.com
DirectoryIndex index.php http://kuuqii.com/index.php
# This should be omitted in the production environment
SetEnv APPLICATION_ENV development
<Directory "D:/wamp531/www/kuuqii">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>hosts文件如下:127.0.0.1 kuuqii.com
127.0.0.1 mallpsi.com
127.0.0.1 ibmstyle.com
127.0.0.1 www.kuuqii.com
127.0.0.1 www.mallpsi.com
127.0.0.1 www.ibmstyle.com127.0.0.1 localhost
不报错,就是不管输入哪个网址进入的都是第一个虚拟主机的网站我也遇到了这个问题.... 没有发现哪里写错了 很不方便