Oracle B12255-01 Manuale Utente

Pagina di 224
mod_rewrite
Oracle HTTP Server Modules
7-53
mod_proxy
This module provides proxy capability for FTP, CONNECT (for SSL), HTTP/0.9,
HTTP/1.0, and HTTP/1.1.
mod_rewrite
Oracle HTTP Server provides mod_rewrite as a tool for URL manipulation. A
rewriting engine based on a regular-expression parser is used by mod_rewrite to
rewrite requested URLs. The granularity of URL manipulations can be affected by
the formats of server variables, environment variables, HTTP headers, and time
stamps.
This module operates on the full URLs (including the path-info part) both in
per-server context (
) and per-directory context (.htaccess) and can
generate query-string parts on result.
The following topics are discussed in the subsequent sections:
mod_rewrite Rules Processing
Apache processes HTTP in phases. A hook for each of these phases is provided by
the Apache API. mod_rewrite uses two of these hooks- the URL-to-filename
translation hook which is used after the HTTP request has been read but before any
authorization starts, and the Fixup hook which is triggered after the authorization
phases and after the per-directory configuration files (.htaccess) have been read,
but before the content handler is activated.
mod_rewrite
reads the configured rulesets from its configuration structure. Server
level rulesets are best configured at startup, while directory level rulesets are
configured during the directory access of the kernel.
See Also:
Module mod_proxy in the Apache Server documentation.