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

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny