Hide WebServer Information on Apache
Date Posted:25-03-2017
In our previous posts, we have seen how to hide webserver information on nginx information. Now, in this post we will show on how to hide server information on Apache webserver. If there is no webserver installed on the host, please follow the below post to install apache webserver on Ubuntu Host.
Implementation:
This post deals with Ubuntu host. However, you can refer the same post to implement on Redhat distribution system.
Open the security.conf and add the following lines.
vi /etc/apache2/conf.d/security.conf
ServerTokens Prod ServerSignature Off
Verify the apache syntax error.
apachectl -t
Restart the apache service.
systemctl restart apache2