Advantages of independent use: ease of configuration and fewer security vulnerabilities (such as using case-sensitive JSP for download). under what circumstances does Apache + Tomcat need to be used? 1. server load balancer if you need server load balancer, Apache + Tomcat + modjk is an option. With this option, you can split the application server into multiple servers.
Advantages of independent use: easy configuration and fewer security vulnerabilities (such as using case-sensitive JSP downloads)
Under what circumstances does Apache + Tomcat need to be used? To analyze
1. server load balancer
If you need server load balancer, Apache + Tomcat + modjk is an option. With this option, you can split the application server into multiple servers. for example, you can split the application server:
(1) Management Application Server
(2) client application server
(3) place reports and printing servers on one machine
(4) place batch operation servers in one place (for example, a large amount of reconciliation transfers)
(5) You can even give each batch of customers a server, for example, different provinces
2. various web server functions
As we all know, Apache has countless mod S, which provide a variety of web functions. if you need these functions, Apache is an indispensable choice.
For example:
(1) virtual host
Multiple domain names must be used for the same ip address, so Apache will help you solve this problem.
(2) urlrewrite
3. fast performance
The advantage of quick response: Apache is far more powerful than other servers. If an Apache server only forwards data, it can drag countless Tomcat servers to run.
4. processing of binary files
For the processing of .jpg. css. js. html, Apache has far higher performance than Tomcat. you can configure these settings for Apache.
5. queuing of requests
6. resource occupation.
For example, if open-session-in-view is used for Application Service Development, send the response content to the client after processing is complete if only Tomcat is used, if the network is slow, the session of the application server will not be closed and will remain waiting. this will easily cause excessive database connections and problems. There are many similar resource occupation problems.
If Apache + Tomcat is used, because Apache and Tomcat are in the same LAN and are very fast between them, all requese and response are interacting with Apache and Tomcat, and the above problems will not occur in this department, apache and end users are both Apache and end users. Apache will not occupy these resources and will not cause such problems.
The above are some common causes.