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