|
Apache HTTP Server Version 1.3Module mod_headersThe optional headers module allows for the customization of HTTP response headers. Headers can be merged, replaced or removed. The directives described in this document are only available if Apache is compiled with mod_headers.c.DirectiveHeaderSyntax: Header [ set | append | add ] header valueSyntax: Header unset header Context: server config, virtual host, access.conf, .htaccess Status: optional Module: mod_header This directive can replace, merge or remove HTTP response headers. 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".
Apache HTTP Server Version 1.3 |
|||||||||||||||||
With any suggestions or questions please feel free to contact us |