返回
頂部
頂部
1 在C:\WINDOWS\system32\drivers\etc\hosts
添加如下代碼:
127.0.0.1 localhost
127.0.0.1 x.test.com x.test1.com x.test2.com
注:x.test.com(假設的DNS)
2 在E:\WAMP\Apache2.2\conf\extra\ .php5
AddType application/x-
改為
DirectoryIndex index.html index.html.var index.php
6 查找
改為
7 查找 DocumentRoot "E:/WAMP/Apache2.2/htdocs"
改為 DocumentRoot "E:/WAMP/www"
8 查找 ServerRoot "E:/XXX/Apache2.2" (apache安裝目錄)
改為 ServerRoot "E:/WAMP/Apache2.2" (apache服務器目錄)
9 x.test.com x.test1.com x.test2.com
分別輸入以上三個進行測試