如何将域分配给多个网站
how to assign domain to multiple web sites
在 2008 R2 上使用 IIS 7.5,"mydomain.com" 绑定到默认网站并且按预期工作,但是,我还需要创建另一个网站并将其绑定到 "mydomain.com/othersite" ,但似乎无法通过这种方式进行绑定。我知道我可以将 "mydomain.com/othersite" 分配给网站内的应用程序,或者我可以创建另一个网站并将其绑定到 "othesite.com" 但这将需要另一个 ip 地址。我需要创建几个网站,例如 "mydomain.com/othersite_A"、"mydomain.com/othersite_B" 和 "mydomain.com/othersite_C"
无论如何我可以做到吗?我认为这可以使用 "othersite.mydomain.com" 来完成,但我不知道该怎么做。
在 DNS 中为子域设置 CNAME 或 A 记录,例如 othersite.mydomain.com,所有子域都指向与您的主站点相同的 IP 地址。然后将其添加为 IIS
中的绑定
在 2008 R2 上使用 IIS 7.5,"mydomain.com" 绑定到默认网站并且按预期工作,但是,我还需要创建另一个网站并将其绑定到 "mydomain.com/othersite" ,但似乎无法通过这种方式进行绑定。我知道我可以将 "mydomain.com/othersite" 分配给网站内的应用程序,或者我可以创建另一个网站并将其绑定到 "othesite.com" 但这将需要另一个 ip 地址。我需要创建几个网站,例如 "mydomain.com/othersite_A"、"mydomain.com/othersite_B" 和 "mydomain.com/othersite_C" 无论如何我可以做到吗?我认为这可以使用 "othersite.mydomain.com" 来完成,但我不知道该怎么做。
在 DNS 中为子域设置 CNAME 或 A 记录,例如 othersite.mydomain.com,所有子域都指向与您的主站点相同的 IP 地址。然后将其添加为 IIS
中的绑定