How To Hide Nginx Server Header

r00t August 3, 2014

Nginx-Logo

In this tutorial we will show you how to hide Nginx version on your Linux server. In default Nginx configuration, the server sends HTTP Header with the information of Nginx version number of the Server. The HTTP response header “Server” displays the version number of the server. This information can be used to try to exploit any vulnerabilities in the Nginx, specially if you are running an older version with known vulnerabilities. Hiding nginx version is very easy and it’s done using server_tokens directive. This tutorial helps you customize the name of the server on your host.

Hide Nginx Server Header

Step 1. Go to nginx/conf folder (it can be located at /etc/nginx/nginx.conf or /usr/local/nginx/conf/nginx.conf file)

Step 2. Hide Nginx version.

Add following in nginx.conf under server section:

Step 3. Restart nginx web server:

Let’s verify if we see the server information now:

Congratulation’s! You have successfully hide Nginx version. Thanks for using this tutorial for hide Nginx version in Linux system. For additional help or useful information, we recommend you to check the official Nginx web site.

Nginx Install Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “Nginx Webserver” installation, starting from $10 (Paypal payment). Please contact us to get a best deal!
Share on Google+0Share on Facebook6Tweet about this on TwitterShare on Tumblr0Share on StumbleUpon10Share on Reddit0Pin on Pinterest1
The Tags:

Leave a Comment