Remove sensitive information in Apache error page

May 23, 2021 MrAnyx 1 min de lecture

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


Cette œuvre est mise à disposition selon les termes de la licence Licence Creative Commons