User Tools

Site Tools


apache:harden_apache:restrict_apache_information_leakage

Apache - Harden Apache - Restrict Apache Information Leakage

Edit the Apache2 configuration security file:

sudo vi /etc/apache2/conf-available/security.conf

Add or edit the following lines and save:

/etc/apache2/conf-available/security.conf
ServerTokens Prod
ServerSignature Off
TraceEnable Off
Header unset ETag
Header always unset X-Powered-By
FileETag None

Restart Apache server

sudo service apache2 restart
apache/harden_apache/restrict_apache_information_leakage.txt · Last modified: 2023/07/17 12:18 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki