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?
Network Function Virtualization is maturing among...
RAKsmart continued to offer hot flash sales for V...
Wireless networks have been around for a long tim...
Wireless routers have become an indispensable net...
[Shenzhen, China, March 20, 2020] Today, Huawei...
On August 26, at the "2020 China Optical Net...
Large-scale 5G construction has begun. As the bas...
In the public opinion field, operators are critic...
[[178931]] The application scenarios of various s...
2018 has passed. This year was a year of hard wor...
Today is World Television Day. Do you remember th...
Speaking of positioning, I believe everyone will ...
LOCVPS (Global Cloud) released a promotional plan...
DogYun is a Chinese hosting company established i...