创建子域名 - WAMP

时间:2015-09-06 00:31:22

标签: windows server wamp subdomain

我有" Windows Server 2012 R2"已经设置了网站。

该域名由GoDaddy托管。 在GoDaddy中,我在区域文件中创建了一个子域A记录条目,并将其指向与我的WAMP服务器上运行的当前站点相同的IP。

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

现在我要使用的子域是" dev"所以如果我去" dev.mywebsite.com" 它把我带到了与我的实际领域相同的地方。不知道如何在WAMP方面设置子域部分。

1 个答案:

答案 0 :(得分:1)

您可以通过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

详细说明了这些步骤
相关问题