The process of handling requests can be divided generally into these consecutive phases:
- Check Uniform Resource Identifier (URI). In this phase, the Apache Web server first analyzes the request sent by the client and determines the information that the client requires. After doing so, the Apache Web server locates the place where the requested information is stored.
- Check authentication ID (Auth ID). This phase involves validating the credentials of the user. In other words, in this phase, the Apache Web server verifies whether the user is an authenticated user.
- Check Auth access. This phase involves checking whether the user is authorized to view or access the requested resources.
- Check other access. In this phase, the Web server uses other mechanisms for checking the access permissions of the user.
- Determine the MIME type. After checking the access permissions of the user, the Web server determines the MIME type of the requested resource.
- Send a response to the client. Finally, in this phase, the Web server sends a response to the client. The action taken by the server depends on the method specified in the request.
- Log the request. The request is then logged for future reference.