Member-only story
Completely hide server name apache
I have added these 2 lines in my etc/apache2.conf file, and it hid the OS and apache version.
ServerSignature Off
ServerTokens ProdBut after all I can see the header with server name
Server ApacheHow to hide this information as well ? I am using Debian 7, apache v 2.2
Thanks
Solution
Apache on its own cannot completely unset the Server header (not even with mod_headers).
This appears to be by design, as discussed by the Apache devs.
There is a way to do this using ModSecurity, but I know little about that. Instead, these people have it all figured out already:
I can verify that this works, just tried on Debian 7.6.
edit: install mod security for apache and then add this in your apache2.conf.
<IfModule security2_module>
SecRuleEngine on
ServerTokens Full
SecServerSignature " "
</IfModule>After this restarting the apache, Server header will disappear
Answered By — Ramón
Answer Checked By — David Marino (FixIt Volunteer)
This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0



