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?
DesiVPS released a Christmas promotion plan, whic...
HostXen is a cloud server hosting platform that p...
DogYun (狗云) has launched a pre-sale activity for ...
Hosteons tested the Hybrid Servers (VDS) product ...
When you use WiFi at home to play games, you alwa...
The way businesses run their networks has remaine...
An IP packet consists of two parts: header and pa...
The three major operators are accelerating the sp...
The latest global 5G network development report f...
Hosteons released the OpenVZ 7 VPS Migration to K...
On December 4, Wang Zhen, Vice President of R&...
Linux multi-NIC bonding There are seven network c...
InspireVM is a site under Inspire Solutions LLC. ...
[[268567]] On June 20, with the theme of "In...
As a sports vocational college integrating sports...