如何在IIS上设置反向代理,允许host1.mydomain.com和host2.mydomain.com之间的跨主机通信? [英] How can I setup reverse proxy on IIS, allowing cross-host communciation between host1.mydomain.com and host2.mydomain.com?
问题描述
我在host1.mydomain.com/page_from_host1.jsp有一个网页,在host2.mydomain.com/page_from_host2.html有一个HTML网页。 host1是一个IIS7 / Tomcat框,host2是一个IIS7框。我想允许第一页提交表单,其中显示第二页,并且网址不变。
I have a page at host1.mydomain.com/page_from_host1.jsp and an HTML page at host2.mydomain.com/page_from_host2.html. host1 is an IIS7/Tomcat box and host2 is an IIS7 box. I want to allow the first page to submit a form, which displays the second page, and the URL does not change.
也就是说,网址为host1.mydomain。 com / page_rom_host2.jsp,但页面的内容来自host2.mydomain.com/page_from_host2.html。
That is, the URL is host1.mydomain.com/page_rom_host2.jsp, but the contents of the page are from host2.mydomain.com/page_from_host2.html.
我想象我可以在IIS上设置一个反向代理为了完成这个,类似于mod_proxy,但是Apache Tomcat服务器在这一切都投入了一点扳手。如何设置反向代理以允许跨主机通信并屏蔽URL?
I would imagine I can setup a reverse proxy on IIS to accomplish this, similar to mod_proxy, but the Apache Tomcat Server throws a bit of a wrench into all of this. How can I setup a reverse proxy to allow cross-host communication and mask the URL?
谢谢。
推荐答案
FYI网址似乎移动到这里:
FYI the URL seemed to move here:
以下是基本要点:
安装以下两项内容:
- 应用程式要求路由
- 网址重写模块
配置应用程序请求路由
-
-
- 选择启用代理
然后可以根据需要配置URL重写模块。
Then one can configure URL rewriting module as needed.
这篇关于如何在IIS上设置反向代理,允许host1.mydomain.com和host2.mydomain.com之间的跨主机通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!