Changing lighttpd Server Header

No Comments

The following lighttpd Directives server.tag in lighttpd.conf use to setup lighttpd name and version number (default is commented). This will return a set of string by lighttpd. Below is the default configuration: -

## send a different Server: header
## be nice and keep it at lighttpd
# server.tag = "lighttpd"

In fact, for a basic security I would like to advise you to change the lighttpd Directives server.tag to something that looks more different. Just uncomment the server.tag line and change “lighttpd” to whatever you want for example “gws“.

## send a different Server: header
## be nice and keep it at lighttpd
server.tag = "gws"

After you choose the server.tag name, you can just simply save the lighttpd.conf configuration file and restart your lighttpd service. Not so hard right? To verify it, I would like to advise you to use Mozilla Firefox with Server Spy extension and this will give you what brand of HTTPd server you are visiting to. Of course, you will be asking how can it be done in Apache. Well, I will be covering it in my next blog post. Please stay tuned.

If you found these helpful, please contribute to help:

Leave a Reply