HOW TO DEFINE OWN HEADER FIELDS WITH APACHE 2 With your own header fields, you actually can't do real sense-making things, but isn't it really cool, if your server has its own header field? If you visit a page on this server, let's say spheniscida.de, the apache httpd sends the additional header field X-Spheniscida-original: yes (Test it with following URL: http://quixapp.com/headers/?r=http%3A%2F%2Fspheniscida.de%2F ) But now let's talk about the actual realization of this feature. First make sure that you're running a apache2 httpd on your machine (I really don't know whether this directive runs with apache 1.x!) Then look in your apache configuration directory (usually /etc/apache2). If there's a apache2.conf, use this file, if there's only a httpd.conf, then you have to use httpd.conf. Open the file with your favourite editor (I prefer vim), and append a line like the following (I use this line to add the X-Spheniscida-Original-Field): Header set X-Spheniscida-original "yes" You see, the configuration is really simple. The formal syntax is: Header set " If you add your headers, keep in mind that it is *very* good to choose a name with "X-" at the beginning, so the visting browsers know that you're using non-standardized headers. And please don't use a field with one of the following names: Accept-Ranges Age Allow Cache-Control Connection Content-Encoding Content-Language Content-Length Content-Location Content-MD5 Content-Disposition Content-Range Content-Type Date ETag Expires Last-Modified Link Location P3P Pragma Proxy-Authenticate Refresh Retry-After Server Set-Cookie Strict-Transport-Security Trailer Transfer-Encoding Vary Via Warning WWW-Authenticate Of course you may use this header fields if YOU REALLY KNOW WHAT YOU DO! This fields are standardized and it's better to only let the server use this names. == COPYRIGHT TERMS == <1stLicense name="GNU FDL" version="1.3"> Copyright (C) 2011 lbo Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. You can find a copy of the GNU FDL at http://www.gnu.org/licenses/fdl.txt