本想做个转发,发现使用IIS的重写URL后一直报错404 您要查找的资源没有与之关联的处理程序,http://IPPORT/XXX/api/Values/test 转发到 http://IPPORT/api/Values/test ,根据错误提示检查并没有什么异常的,下载Application Request Routing Cache 模块后不报错了,这个错误提示很误导人。
双击Application Request Routing Cache 点击右侧Server Proxy Settings 后勾选 Enable proxy,这时候之前配置的url重写规则就生效了