Click to See Complete Forum and Search --> : How to change apache response headers
xdentan
03-08-2005, 11:41 PM
I was just wondering how I could change the apache response headers. I would like to change the server name in the response headers from
Apache/1.3.26 (Unix) Debian GNU/Linux
to just
Apache GNU/Linux
how could I configure apache to show this
Thanks
Weedpacket
03-09-2005, 12:15 AM
There's the ServerTokens (http://httpd.apache.org/docs/mod/core.html#servertokens) directive; more control might involve using mod_headers (http://httpd.apache.org/docs/mod/mod_headers.html)
goldbug
03-09-2005, 08:47 AM
A third option is to patch the source before compiling (that's usually what I do).
(Look in ./include/ap_release.h)
Weedpacket
03-09-2005, 10:43 PM
I kinda wish ServerTokens was a bit more flexible. A printf-type syntax say, with % tokens for things like OS, Server version....
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.