本文介紹了Wamp 服務器:多個虛擬主機在 Windows 上不工作的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我在 windows 上有兩個虛擬主機(例如:test1.dev 和 test2.dev).但它總是為兩個虛擬主機加載 test1.dev 的內容.
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.
以下是我的文件:
主機:
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>
有人能認出問題嗎?
推薦答案
我猜你在某處遺漏了 NameVirtualHost 127.0.0.1:80
行:)
I'm guessing you're missing the NameVirtualHost 127.0.0.1:80
line somewhere :)
這篇關于Wamp 服務器:多個虛擬主機在 Windows 上不工作的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!