Hide the Apache web server signature

not_found

When Apache can't find a url or the user does not have permissions to see a certain page (403), add a signature at the bottom of the page with information about the installed version as you can see in the image that heads the article.

To hide it, edit the file /etc/apache2/apache2.conf, execute the following and restart the daemon:


sudo sh -c 'echo "ServerSignature Off\nServerTokens Prod" >> /etc/apache2/apache2.conf'
sudo systemctl restart apache2


I request your permission to obtain statistical data on its navigation on this website. If you continue to browse I consider you accept the use of cookies. This site is adapted to be compliant with the new law about General Data Protection Regulation. OK | More Information