Home >Backend Development >PHP Tutorial > wamp配置两个虚拟主机后,访问不正常,该如何处理

wamp配置两个虚拟主机后,访问不正常,该如何处理

WBOY
WBOYOriginal
2016-06-13 12:37:07950browse

wamp配置两个虚拟主机后,访问不正常
wamp配置多个虚拟主机后,访问不正常
配置如下:

   # ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "D:\wwwroot\nasdao"
    ServerName www.a.com
   # ServerAlias www.dummy-host.example.com
   # ErrorLog "logs/dummy-host.example.com-error.log"
   # CustomLog "logs/dummy-host.example.com-access.log" common



    DocumentRoot "D:\wwwroot\jyd\web"
    ServerName www.b.com
    ServerAlias  www.b.com
    ErrorLog "D:\wwwroot\jyd\error.log"



    DocumentRoot "D:\wwwroot\jyd\web"
    ServerName b.com
    ServerAlias b.com
    ErrorLog "D:\wwwroot\jyd\error.log"


在访问www.b.com 和去掉www直接访问b.com时候访问特别缓慢 访问www.a.com正常

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn