Heim  >  Artikel  >  Backend-Entwicklung  >  wamp配置两个虚拟主机后,访问不正常,该如何处理

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

WBOY
WBOYOriginal
2016-06-13 12:37:07908Durchsuche

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正常

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn