【问题标题】:Multiple websites on one IIS server一台 IIS 服务器上的多个网站
【发布时间】:2018-11-02 17:12:08
【问题描述】:

因此,如果我有两个域,即 domain1.exampledomain2.example,它们都指向端口 80 上完全相同的 IP 地址(即 192.0.2.1)。

如何将用户从 domain1.example 带到一个站点,以及从 domain2.example 请求的用户到另一个站点?

另外,我如何设置子域?请求x.domain1.example 的人应该转到第三个站点。

【问题讨论】:

    标签: iis web server subdomain multiple-domains


    【解决方案1】:

    当您在 IIS 中配置站点时,您可以在绑定中分配必要的主机名,站点只会对此做出响应。

    【讨论】:

    • 谢谢,当我只绑定 domain1.example 时,我从 www.domain1.example 请求站点。现在都绑定了,效果很好!谢谢!
    猜你喜欢
    • 1970-01-01
    • 2012-12-05
    • 1970-01-01
    • 2012-07-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-25
    • 1970-01-01
    相关资源
    最近更新 更多