arr url重写不适用于外部站点
我们正在尝试使用ARR和URL重写设置反向代理机制。当目标url是托管在同一服务器中的url时,重写工作正常。但是,当我们尝试将其路由到外部服务器时,路由正在工作。我们正在取得进展arr url重写不适用于外部站点,url,iis,rewrite,arr,Url,Iis,Rewrite,Arr,我们正在尝试使用ARR和URL重写设置反向代理机制。当目标url是托管在同一服务器中的url时,重写工作正常。但是,当我们尝试将其路由到外部服务器时,路由正在工作。我们正在取得进展 HTTP Error 502.3 - Bad Gateway The operation timed out Module ApplicationRequestRouting Notification ExecuteRequestHandler Handler ApplicationRequestRoutin
HTTP Error 502.3 - Bad Gateway
The operation timed out
Module ApplicationRequestRouting
Notification ExecuteRequestHandler
Handler ApplicationRequestRoutingHandler
Error Code 0x80072ee2
Requested URL http://localhost:8882/ff
Physical Path D:\pocwebsites\exposed\ff
Logon Method Anonymous
Logon User Anonymous
•The CGI application did not return a valid set of HTTP errors.
•A server acting as a proxy or gateway was unable to process the request due to an error in a parent gateway.
•Use DebugDiag to troubleshoot the CGI application.
•Determine if a proxy or gateway is responsible for this error.
请查找下面给出的web.config文件
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="or_rule_1" enabled="true">
<match url=".*" />
<action type="Rewrite" url="http://www.cnn.com" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
我们遇到了类似的问题。将url重写到本地站点没有问题,但是重写到外部站点会导致错误的网关错误
我们确实有一个内部代理(您在IE中设置的用于访问外部站点的代理)。在ARR反向代理页面中设置相同的代理解决了我们的问题 在Windows 2008、IIS 7.5上也存在类似问题 问题是应用程序池处于集成模式。这导致了重写的问题。 重定向始终正常,但重写始终失败 我将应用程序池更改为经典模式,并解决了问题(至少目前如此) 更好的解决方案可能是
就在最后。但是我还没有试过。你能解释一下这个问题的解决方法吗?