Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution of sharing port 80 with IIS Tomcat

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Why is there such a demand? the reason is that the company has a web project for Java. On another server A, the boss recently wanted to merge him into server B, which is a stable point. Server B uses IIS to host asp.net sites. What should we do? go ahead and find all kinds of solutions on the Internet:

Solution one: isapi_redirect

This method has been tried N times in accordance with the method, but it has not been worked out.

Solution 2: IIS reverse proxy

The basic logic is that the request comes to IIS,IIS and forwards the request to Tomcat for processing according to the routing rules, and then tomcat returns the response to IIS.

This solution is still only IIS exclusive port 80, it looks like IIS Tomcat shares port 80

An IIS plug-in needs to be installed at the following download address: https://www.microsoft.com/web/handlers/webpi.ashx/getinstaller/ARRv3_0.appids

The configuration files generated after various configurations on IIS UI are as follows:

^ (. *) this regular means that all requests are matched

Www.ahapc.org indicates that the input matches, that is, if your request contains www.ahapc.org, the forwarding condition is met.

Http://localhost:8080/{R:1} means that after meeting the above conditions, it is forwarded to the local 8080 for processing, that is, to the local Tomcat for processing.

Solution 3: nginx reverse proxy

Summary

The above is the IIS Tomcat shared 80 port solution introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report