In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about the function of redirectPort in Tomcat, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Description of the role of redirectPort in the Tomcat configuration file Server.xml:
Configuration file source code snippet:
This code snippet sets the configuration of the HTTP request, in which you can see ports 8080 and 8443, and 8080 is the port of HTTP.
So what is the purpose of the redirectPort attribute?
When a user requests a resource with http and the resource itself is set to be accessed in https mode, Tomcat will automatically redirect to the https port set by this redirectPort.
Add: details of port number modification when multiple tomcat are deployed on the same server
When deploying multiple tomcat on the same server, there is a problem of port number conflict, so you need to modify the tomcat configuration file server.xml, taking tomcat7 as an example.
First, take a look at the main ports of tomcat:
Where 8080 is the HTTP port and 8443 is the HTTPS port
8005 is a remote outage port
8009 is an AJP port, and APACHE can access port 8009 of TOMCAT through the AJP protocol.
Deployment of multiple tomcat mainly modifies three ports:
1.HTTP port, default is 8080, changed to 8081 as follows
two。 Remote outage port. Default is 8005, which is changed to 8006 as follows.
.
3.AJP port. Default is 8009, changed as follows, 8010
These are the functions of redirectPort in Tomcat, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.