note 22478 added to function.header
| From: | ryanN0SPAM at dewarproperties dot com | Date: | Wed, 19 Jun 2002 17:33:00 +0000 |
| Subject: | note 22478 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32016@lists.php.net to get a copy of this message | ||
Someone asked above how to change the Server: HTTP response header in Apache. Although you cannot
change it dynamically in PHP, you do have some options in the httpd.conf file
The option in httpd.conf that controls the Server: header is ServerTokens and it can be one of four
values:
VALUE MAKES Server: HEADER
-------------------------------------------------
ProductOnly Server: Apache
Minimal Server: Apache/1.3.0
OS Server: Apache/1.3.0 (UNIX)
Full Server: Apache/1.3.0 (UNIX) PHP/3.0 mod_perl
For example, in httpd.conf, add the line:
ServerTokens Full
to change the Server header to:
Server: Apache/1.3.0 (UNIX) PHP/3.0 mod_perl
If you want to change it to anything else, you'll have to edit the source code. I think the
file to look at is http_core.c
--
http://www.php.net/manual/en/function.header.php
http://master.php.net/manage/user-notes.php?action=edit+22478
http://master.php.net/manage/user-notes.php?action=delete+22478
http://master.php.net/manage/user-notes.php?action=reject+22478