我在远程服务器的以下地址上托管了两项服务:
192.168.200.157:80/service1
192.168.200.157:7071/service2
我正在使用 AJAX 请求请求这些服务。我已经为跨域 AJAX 请求使用了 ARR 和 URL 重写工具。为此,我在 IIS 的 URL 重写工具中定义了如下规则:
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://192.168.200.157:/{R:1}" />
</rule>
使用此规则,我可以向“service1”发送跨域请求,但发送到“service2”的请求给出“404 Not Found”错误。
Firebug 结果还显示,这条规则正在向 service1 发送请求,但无法向 service2 发送请求。
上述规则中需要进行哪些修改或添加才能成功向两个服务发送请求?