Hide Nginx version

By default, the Nginx version will be displayed when we query HTTP headers or error generated by the Nginx server. lets see how we can hide or remove the Nginx version. First lets see how Nginx version is displaying using cli Through curl command,we can see the version on error pages and in the “Server” response header field. Sample Output Now lets hide Nginx Version using server_tokens directive We need to set server_tokens to off to hide the Nginx server version.Now we will edit nginx.conf file.We will set server_tokens in…

Read More