From: pcs Date: Mon, 25 Nov 1996 11:54:11 +0000 (+0000) Subject: Add documentation for the new headers module (mod_headers) X-Git-Tag: APACHE_1_2b1~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=704556118936a7d5f8cbb7665ec0a65b9859d3d1;p=apache Add documentation for the new headers module (mod_headers) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@77039 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_headers.html b/docs/manual/mod/mod_headers.html new file mode 100644 index 0000000000..db25271583 --- /dev/null +++ b/docs/manual/mod/mod_headers.html @@ -0,0 +1,97 @@ + + + +Apache module mod_headers + + + + +

Headers Module

+ +The optional headers module allows for the customisation 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. + +
+ +

Directive

+ + +
+ +

Header

+Sytnax: Header [ set | append | add ] header value
+Sytnax: 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: + +

+ +This argument is followed by a header name, which can include the +final colon, but it is not required. Case is ignored. For +add, append and set a value is given as the third argument. If this +value contains spaces, it should be surrounded by double quotes. +For unset, no value should be given. + +

Order of Processing

+ +The 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: +

    +
  1. main server +
  2. virtual host +
  3. <Directory> sections and .htaccess +
  4. <Location> +
  5. <Files> +
+ +Order is important. These two headers have a different effect if reversed: +
+Header append Author "John P. Doe"
+Header unset Author
+
+ +This 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". +

+ + + +