Remove sensitive information in Apache error page

May 23, 2021 MrAnyx 1 min to read

Sensitive information is a gold mine for hackers. That is why you should always hide this information.

In order to hide this information, you just need to edit the file /etc/apache2/apache2.conf

sudo nano /etc/apache2/apache2.conf

And then, add two lines at the end of this file.

ServerTokens Prod
ServerSignature Off 

Cover photo by Philipp Katzenberger

This work is made available under the terms of the license Licence Creative Commons