wampServer多站點配置

2022-09-17 15:24:22 字數 599 閱讀 5909

1.新增站點:

在apache/conf/extra/httpd-vhosts.conf 中加入站點

documentroot "d:/demo/test01"    

servername test01.com

documentroot "d:/demo/test02"    

servername test02.com

2.apache載入extra檔案:

httpd.conf中去掉注釋#

3.允許外部站點訪問:

httpd.conf中 搜尋demo(**目錄)

下allow from all

4.優先127.0.0.1(localhost)解析網域名稱:

c:\windows\system32\drivers\etc 下的hosts檔案:

127.0.0.1       localhost

127.0.0.1       test01.com

127.0.0.1       test02.com

重啟服務,生效。

WAMPServer多站點配置

1.首先修改wampserver安裝目錄下的d study wampserver wamp bin apache apache2.2.21 conf extra httpd vhosts.conf檔案,如下 更改對應的位址,testone,testtwo分別代表工程的根目錄,儲存 3.在php工程的...

wampserver多站點配置

首先,d wampserver wampserver wamp64 bin apache apache2.4.23 conf extra在該目錄下 也就是你的wampserver的安裝目錄 找到httpd vhosts.conf開啟 配置時,我們可以直接複製他注釋裡面的模板 servername l...

wampserver配置多站點

1.在 httpd.conf 檔案中查詢 include conf extra httpd vhosts.conf,去掉前面的注釋 開啟extra httpd vhosts.conf檔案 在最後加入類似內容 檔案路徑是自己安裝程式的路徑 documentroot d wamp www aaa 這是你...