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.

Install Apache 2.4 on ubuntu

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

 

 

Leave a Reply