|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
vlink="#000080" alink="#FF0000">
Apache HTTP Server Version 1.3Module mod_headersThis module provides for the customization of HTTP response headers. Status: Extension SummaryThis module provides a directive to control the sending of HTTP headers. Headers can be merged, replaced or removed.DirectivesHeader directiveSyntax: Header set|append|add header valueSyntax: Header unset header Context: server config, virtual host, access.conf, .htaccess Override: FileInfo Status: Extension Module: mod_headers This directive can replace, merge or remove HTTP response headers during 1xx and 2xx series replies. For 3xx, 4xx and 5xx use the ErrorHeader directive. The action it performs is determined by the first argument. This can be one of the following values:
Order of ProcessingThe Header directive can occur almost anywhere within the server configuration. It is valid in the main server config and virtual host sections, inside <Directory>, <Location> and <Files> sections, and within .htaccess files.The Header directives are processed in the following order:
Header append Author "John P. Doe" Header unset AuthorThis way round, the Author header is not set. If reversed, the Author header is set to "John P. Doe". The Header directives are processed just before the response is sent by its handler. These means that some headers that are added just before the response is sent cannot be unset or overridden. This includes headers such as "Date" and "Server". ErrorHeader directiveSyntax: ErrorHeader set|append|add header valueSyntax: ErrorHeader unset header Context: server config, virtual host, access.conf, .htaccess Override: FileInfo Status: Extension Module: mod_headers This directive can replace, merge or remove HTTP response headers during 3xx, 4xx and 5xx replies. For normal replies use the Header directive. This directive is identical to the Header directive in all other respects. Consult this directive for more information on the syntax.
Apache HTTP Server Version 1.3 |