找不到 IIS 反向代理和资源

IIS reverse proxy and resources not found

环境:

我想达到的目标:

我了解到这可以通过URL重写和ARR来完成,但是当我关注很多文章时(例如http://weblogs.asp.net/owscott/creating-a-reverse-proxy-with-url-rewrite-for-iis), it was working only partially. The header was rewrited, but no page resources was found because for example http://myserver.com/grafana/scripts/script.js is not there. I understand, that physically the file is not there, because it is in http://myserver.com:3000/scripts/script.js,但我不知道为什么页面加载正确,但是没有资源?我是漏掉了什么还是做错了什么?

如有任何建议,我们将不胜感激。

我终于找到了解决办法,主要错误是,我在URL rewrite 中没有设置出站规则,我只设置了入站规则,所以资源路径无效。感谢这篇文章 http://blog.cellenza.com/archi-patterns-bp/reverse-proxy-iis-url-rewrite/ 我设法正确设置了所有内容。