beta.blog

Linux (Ubuntu)

Apache2: Disable server signature/banner

by on May.11, 2011, under Linux (Ubuntu)

In order to secure your apache web server you should remove the server signature. It is displayed at the bottom of the page whenever a user lists a directory of your web server and it contains some useful information for hackers (for instance the underlying OS, the apache version and similar details).

First of all you should navigate to /etc/apache2
This folder contains your web servers configuration files. You should see the following two files there: apache2.conf and httpd.conf
If the file size of httpd.conf is equal 0 (zero), open apache2.conf with your favourite text-editor.

Now apply the following line at the end of the file:

ServerSignature Off

Save the file and close it.

Finally execute:

/etc/init.d/apache2 reload

to reload the server’s configuration files.

2 Comments more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!