Name
Header
Synopsis
Header <set|append|add|unset>:header
[value
]
[server config, or within
<VirtualHost>
or
<Directory>
, or
.htaccess]
This directive allows administrators to
merge, remove, or replace HTTP headers that are transmitted with
server documents. The header action performed is specified after the
Header
directive; it can be one of four choices:
-
set
The header specified is reset to the value specified.
-
append
A header is appended to the specified response header, if it exists. The new value is listed after the old value and is separated by a comma.
-
add
A new header is created and added to the response headers, even if one already exists.
-
unset
This option deletes the first occurrence of the header in question.
Headers such as Date
and Server
cannot be overridden using this directive.
Get Webmaster in a Nutshell, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.