【问题标题】:Issue with redirection in IIS?IIS中的重定向问题?
【发布时间】:2020-02-25 18:00:56
【问题描述】:

我在 IIS 中有以下规则

     <rewrite>
        <rules>
            <rule name="ReverseProxyInboundRule1" patternSyntax="ExactMatch" stopProcessing="true">
                <match url="apex" />
                <action type="Redirect" url="http://{HTTP_HOST}:8080/ords/f?p=1" logRewrittenUrl="true" />
            </rule>
        </rules>
    </rewrite>      

这条规则工作正常,并从

重定向 URL
  • www.example.com/apex

  • www.example.com:8080/ords/f?p=1

我想获得一个没有 8080 端口的 URL。因此,当我将规则类型更改为重写时。它不再起作用了。它省略了端口,我收到错误:404 - 找不到文件或目录

请问有人知道怎么解决吗?

谢谢。 问候,

【问题讨论】:

标签: iis


【解决方案1】:

我猜你得到了 404.4。如果您没有为您的网站启用详细的错误消息。然后你会得到 404 File or directory not found。

请安装失败的请求跟踪 https://www.microsoft.com/en-us/download/details.aspx?id=47333.

然后进入IIS管理器->服务器节点->应用请求路由缓存->服务器代理设置->启用代理。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-06
    • 2017-10-12
    • 2016-01-21
    • 2015-07-01
    • 1970-01-01
    • 2016-01-27
    相关资源
    最近更新 更多