【发布时间】:2015-06-09 02:37:45
【问题描述】:
简单地说,我如何将test.example.com 重定向到example.com?我想让子域对用户来说看起来“真实”(在后台重定向,URL 仍然是test.example.com/index.html)。我已尝试修改域上的 DNS 设置、IIS 配置,并将我的子域添加到我的 Azure 配置中。
Web.Config
<rule name="Push Subdomain to Push folder">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^test.example.com$" />
</conditions>
<action type="Rewrite" url="http://example.com/test/{R:1}" />
我的 DNS 配置:
子域:test |网址:example.azurewebsites.net |记录类型:CNAME(别名)
当我这样做时,我收到以下错误消息:
The page cannot be displayed because an internal server error has occurred.
【问题讨论】:
标签: azure iis dns azure-web-app-service