Stop showing server software version information on 404

John Smith asked:

e.g. if someone type url that dont exist it shows 404 page and on bottom

Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/ Server at Port 80

i want to remove that line

My answer:

Add this to your Apache configuration:

ServerSignature Off
ServerTokens Prod

For more information, see the documentation for ServerSignature and ServerTokens.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.