User request flow (web/application level)
Before we discuss the installation of Apache, let's discuss a high-level overview of how the request flows from the web and application server for an application in IT industries. The following figure shows the process flow for a user request, in a web application. The step-by-step involvement of each component is as follows:
1. The user hits the URL in the browser and the request goes to the HTTP server instead of Tomcat.
2. The HTTP server accepts the request and redirects it to Tomcat for business logic processing.
3. Tomcat internally contacts the database server to fetch the data, and sends the response back to the user through the same channel of request: