本文介紹了Wamp 服務(wù)器:多個(gè)虛擬主機(jī)在 Windows 上不工作的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!
問(wèn)題描述
我在 windows 上有兩個(gè)虛擬主機(jī)(例如:test1.dev 和 test2.dev).但它總是為兩個(gè)虛擬主機(jī)加載 test1.dev 的內(nèi)容.
I have two virtual hosts on windows(for example: test1.dev and test2.dev). But it always load content of test1.dev for both virtual hosts.
以下是我的文件:
主機(jī):
127.0.0.1 localhost
127.0.0.1 test1.dev
127.0.0.1 test2.dev
httpd.conf:
httpd.conf:
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
Include "c:/wamp/alias/*"
<VirtualHost 127.0.0.1>
ServerName test1.dev
DocumentRoot "C:wampwww est1public"
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerName test2.dev
DocumentRoot "C:wampwww est2public"
</VirtualHost>
有人能認(rèn)出問(wèn)題嗎?
推薦答案
我猜你在某處遺漏了 NameVirtualHost 127.0.0.1:80
行:)
I'm guessing you're missing the NameVirtualHost 127.0.0.1:80
line somewhere :)
這篇關(guān)于Wamp 服務(wù)器:多個(gè)虛擬主機(jī)在 Windows 上不工作的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!