我跟随本教程,但我想我遗漏了一些东西
https://www.tevpro.com/blog/using-iis-as-a-reverse-proxy-server
我正试着发送请求
https://192.168.1.77/bi/Dashboards/Pretrial%20PSA%20Dashboard?rs:embed=true
这将发送请求,如下面的链接,这是工作时,我们直接发送请求。https://192.168.1.77:9998/reports/powerbi/Dashboards/Pretrial%20PSA%20Dashboard?rs:embed=true
<rewrite>
<rule name="IB Proxy" stopProcessing="true">
<match url="/bi/(.*)" />
<action type="Rewrite" url="https://192.168.1.77:9998/reports/powerbi/{R:1}" appendQueryString="false" />
</rule>
</rules>
</rewrite>嗨,我试图在测试服务器上设置反向代理,但是当我试图访问BI服务器时,我想我遗漏了一些东西,因为我得到了404错误。
发布于 2022-09-02 06:25:25
请尝试以下重写规则:
<rewrite>
<rules>
<rule name="IB Proxy" stopProcessing="true">
<match url="bi/(.*)" />
<action type="Rewrite" url="https://192.168.1.77:9998/reports/powerbi/{R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>变动:
<match url="/bi/(.*)" />到<match url="bi/(.*)" />
例如,
。
appendQueryString="false"到appendQueryString="true"
当
中。
此外,还需要在IIS服务器上启用ARR。

https://stackoverflow.com/questions/73575676
复制相似问题