
Authentication
Checks the user’s credentials.
Authorization
Checks whether the authenticated user is allowed to
access the resource.
MIME type checking
Determines attributes of the resource, such as document
content type.
Fix-up
Makes any adjustments before the content generation
phase.
Content generation
Generates the response.
Request logging
Logs the request.
This picture is complicated slightly in that modules can issue
subrequests to return a document other than that requested or
to check what the response would be if a request was made
for a different resource.
Modules register handlers for the phases during which they
need to influence the handling of the request. Generally a
module will only register handlers for one or two phases.
Directives implemented by a module are described in the
chapter that covers the main phase handled by that module.
Post-Read Request Phase
This is the first phase in the request handling process. At this
point, only the values of the request line and of the HTTP
request headers are available. The proxy module uses this
phase to prepend the string
proxy: to the URI for requests it
handles, so that other modules do not inadvertently handle
those requests.
Post-Read Request Phase 31