2015-09-06 76 views
0

我有已安裝網站的「Windows Server 2012 R2」。創建子域 - WAMP

該域名在GoDaddy託管。 在GoDaddy中,我在區域文件中創建了一個子域A記錄條目,並將其指向與我的WAMP服務器上運行的當前網站相同的IP。

但是,如何讓我的Windows Server/WAMP使用子域?

現在我想使用的子域是「開發」,所以如果我去「dev.mywebsite.com」 它需要我到我的實際域相同的地方。不知道如何設置WAMP一側的子域部分。

+0

解釋創造了Apache的虛擬主機? – Jigar

+0

我遵循本指南:[鏈接](http://www.techrepublic.com/blog/smb-technologist/create-virtual-hosts-in-a-wamp-server/)並且有 ' 的ServerAdmin [email protected] 的DocumentRoot 「C:\瓦帕\ www」 的 服務器名mydomain.local 錯誤日誌 「日誌/ mydomain.log」 的CustomLog 「日誌/ MYDOMAIN-access.log的」 共同 ' '<虛擬主機*:80> 的ServerAdmin [email protected] 的DocumentRoot 「C:\瓦帕\ WWW \子域\ dev的」 服務器名dev.mydomain.local 錯誤日誌 「日誌/ mydomain.log」 的CustomLog「日誌/ mydomain-access.log「通用 子域仍然轉發 – Guardian78

+0

通過嘗試各種方式來設置虛擬主機來了解它。謝謝。 – Guardian78

回答

0

可以在4個步驟執行此操作:

Step 1: Create the folder which will hold your sub-domains 
Step 2: Make sure httpd-vhosts.conf file is included 
Step 3: Configuring Apache VirtualHosts 
Step 4: Updating Windows Host File 

這些步驟進行了詳細here

+0

此鏈接無效 – Omid