Change LigHTTPD Version Header
This is a follow on guide from
Change Apache Version Header
Unlike Apache I found LigHTTPD has a option in the config that allows you to set the version without any real difficulty. No need to adjust the source and then compile. For those interested src/response.c contains
Code:
if (buffer_is_empty(con->conf.server_tag)) {
BUFFER_APPEND_STRING_CONST(b, "\r\nServer: " PACKAGE_NAME "/" PACKAGE_VERSION);
} else {
BUFFER_APPEND_STRING_CONST(b, "\r\nServer: ");
buffer_append_string_buffer(b, con->conf.server_tag);
}
Which basically means, if server_tag does not exist return LigHTTPD / Version, or whatever has been set previously, instead of having to adjust this like in Apache, below you will see it will print out what you have set.
So its a simple task of opening lighttpd.conf and adding
server.tag = "HostGeekZ"
Now restart LigHTTPD and it will adjust your version.
Before:
Code:
Server: lighttpd/1.4.7
After:
An updated version of this guide can be found
Here