我在IIS 8.5中安装了URL Rewrite模块和ARR . 我根据here的说明在默认网站上设置了反向代理:

名称:fmeserver匹配URL:模式:( fme . )操作:重写URL:http://localhost:8080/ {R:0}

我的网站是example.com . 我添加了一个Redirect规则,我将其更改为重写规则:

<rule name="RewriteRule" patternSyntax="ECMAScript" stopProcessing="true">
    <match url="(.*)"/>
    <conditions logicalGrouping="MatchAll" trackCaptures="false">
        <add input="{HTTP_HOST}" pattern="^(www\.)?alternatedomain.com$" />
    </conditions>
    <action type="Rewrite" url="https://example.com/events/specificpage" />
</rule>

该规则用作重定向,但当我将其更改为重写时,我得到“无法访问此站点,重置了连接”