Remove sensitive information in Apache error page
May 23, 2021
•
•
1
min de lecture
![](/image/63ebbe55da19b228341372.jpeg?w=250&h=100&q=10&s=4ca10181b45a4e853f31c9814675af78)
![](/image/63ebbe55da19b228341372.jpeg?w=1000&h=400&s=c8f3c2c564303daadb9328fb21115ba9)
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