我想从我们的一个Intranet IIS站点设置一个反向代理,指向另一个tomcat服务器 . 例如,我希望用户浏览到'http://our-iis-server/friendly-url ' and for it to reverse proxy to ' http://our-tomcat-server/ugly-url' .
什么是最好的解决方案?我把它缩小到三个选项:
此外,这些工具可以重写html中的链接吗?例如,如果tomcat服务器's html has something like ' a href = http://our-tomcat-server/ugly-url/product/widget ' i would need it to change to ' a href = http://our-iis-server/friendly-url/product/widget'
提前致谢 . 所有好的答案都将被投票!
1 回答
IIRF很好而且免费 . 但是,它不是反向代理 - 无论如何还没有 . [截至2010年3月,IIRF可以充当反向代理]它's the equivalent of Apache' s mod
_
重写,你需要mod_
代理 .看起来Helicon ISAPI Rewrite 3.0支持代理以及URL重写 .
免费选项包括Apache on Windows,或者您也可以将Squid作为代理服务器运行 . 规范的微软答案是ISA Server .