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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 11:35:53873Durchsuche

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

   # ServerAdmin [email protected]
    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
Vorheriger Artikel:windows停 php 导出数据到EXCEL表中Nächster Artikel:PHP装配和配置