httpd-vhosts文件如下:
#mallpsi
NameVirtualHost *:80
DocumentRoot "D:/wamp531/www/mallpsi"
ServerName mallpsi.com
DirectoryIndex index.php
# This should be omitted in the production environment
SetEnv APPLICATION_ENV development
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
#ibmstyle
NameVirtualHost *: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
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
#kuuqii
NameVirtualHost *: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
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
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.com
127.0.0.1 localhost
有人解答吗?
虚拟主机的设置 与 浏览器毫无关系
无效的时候报什么错,贴个截图出来看看。
无效的时候报什么错,贴个截图出来看看。
不报错,就是不管输入哪个网址进入的都是第一个虚拟主机的网站
我也遇到了这个问题.... 没有发现哪里写错了 很不方便
有重启服务器吗?
重启了N多次