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?
I am a bit scratching my head. Which word should ...
An operator insider confirmed to IT Times, "...
RAKsmart's independent server flash sale cont...
Industry development starts with standards. On th...
Preface Many Java programmers may only have a thr...
[Original article from 51CTO.com] Cross-domain re...
[[394988]] The 14th Five-Year Plan will accelerat...
ColoCrossing has released a new VPS promotional p...
spinservers has launched a promotion for Double 1...
In the first half of this year, with the skyrocke...
Environment: SpringBoot2.7.16 1. Introduction Cro...
China Telecom has been making every effort to pop...
IPSec (Internet Protocol Security) is a security...
Since the promotion of 5G mobile phones and packa...
PacketVM is a company registered in the UK (numbe...