我有一个我正在尝试使用的IIS重写规则 . 当我将Action设置为'重定向'时,其工作正常 . 同样,如果我选择自定义响应并设置一些任意状态代码,我将在HTTP响应中返回,所以我知道规则匹配我的URL . 但是,我需要重写它(作为反向代理),但只要我将动作更改为“重写”它就不会生效 .

我安装了应用程序请求路由模块并在“服务器代理设置”下启用了代理(根据本页http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing) .

我已经尝试了从重新启动站点,服务器,IIS,W3p进程以及一切都没有生效的一切 . 我已根据需要在服务器级别添加了规则,并在ApplicationHost.config文件中确认它是否正确 .

什么不是导致这种情况发生的想法?我在SO上看过一些类似的帖子,但在这种情况下,他们都没有一个解决方案或为我工作 .

EDIT: OK, so if I change the application pool from integrated to classic, the rule seems to fire (which is weird as the rule is at a server level!?!). However, My site requires integrated mode to function. Anyone know whats going on here?