The main function of Tomcat is to provide a Servlet/JSP container. Although it can also be used as an independent Java Web server, its processing speed for static resources (such as HTML files or image files) and the Web server management functions it provides are not as good as other professional HTTP servers, such as IIS and Apache servers. Therefore, in practical applications, Tomcat is often integrated with other HTTP servers. For HTTP servers that do not support Servlet/JSP, Servlet/JSP components can be run through Tomcat servers. When Tomcat is integrated with other HTTP servers, the working mode of the Tomcat server is usually an out-of-process Servlet container, and the Tomcat server communicates with other HTTP servers through special plug-ins. Tomcat configures two connectors in server.xml. Related concepts Two ways for Web clients to access Tomcat servers
Connector Configuration The configuration of the Connector is located in the conf/server.xml file. 1. BIO HTTP/1.1 Connector Configuration A typical configuration is as follows:
Some other important properties are as follows:
If it is SSL configuration, it is as follows:
Among them, keystoreFile is the certificate location, keystorePass is the certificate password 2. NIO HTTP/1.1 Connector Configuration
3. Native APR Connector Configuration ARP is written in C/C++ and optimizes static resources (HTML, images, etc.). So you need to download the local library tcnative-1.dll and openssl.exe, and place them in the %tomcat%\bin directory. To configure a Listener in server.xml:
|
<<: 5G phones are now online. How long can 4G phones last? Can old phones use 5G networks?
After more than a year of commercial use, China h...
[51CTO.com original article] The classic scene in...
SASE (Secure Access Service Edge) and SD-WAN are ...
It’s the end of the year again. Regardless of whe...
We know that the CN2 GIA line is one of the relat...
CloudCone has re-launched the Hashtag 2023 series...
At the beginning of the year, the tribe shared in...
Megalayer released a promotional plan for this ye...
As we all know, VR is a very popular technology n...
According to relevant data, the global manufactur...
With the booming development and implementation o...
The annual MWC World Mobile Communications Confer...
Wi-Fi 6's expansion to 6GHz is further attrib...
[[389252]] Yesterday, the three major operators a...
[51CTO.com original article] On September 23, 202...