1 / 3
Caption Text
2 / 3
Caption Two
3 / 3
Caption Three margin testing

Friday, August 6, 2010

Hide the Apache Version number and Server information

http://serversignature.com/Apache2-Turning-ServerSignature-off

By default many Apache installations tell the world what version of Apache you're running, what operating system/version you're running, and even what Apache Modules are installed on the server. Attackers can use this information to their advantage when performing an attack. It also sends the message that you have left most defaults alone.

The ServerSignature appears on the bottom of pages generated by apache such as 404 pages, directory listings, etc.

The ServerTokens directive is used to determine what Apache will put in the ServerHTTP response header. By setting it to Prod it sets the HTTP response header as follows:

 Server: Apache

To disable server signature, you will need to open your /etc/apache2/apache2.conf file,
and search for "ServerSignature" and press return. If you find it, edit it to:

ServerSignature Off
ServerTokens Prod


If you don't find it, just scroll to the end of the file and add these two lines.
Then, we need to reload apache configuration to put this new change in effect:

sudo /etc/init.d/apache2 reload

No comments:

Post a Comment

Featured Post

Windows和Ubuntu双系统完全独立的安装方法

http://www.ubuntuhome.com/windows-and-ubuntu-install.html  | Ubuntu Home Posted by Snow on 2012/06/25 安装Windows和Ubuntu双系统时,很多人喜欢先安装windows,然...