server_tokens

Context: http, server, and location

This directive allows you to define whether or not Nginx should inform clients of the running version number. There are three situations where Nginx indicates its version number:

  • In the server header of HTTP responses (such as nginx/1.8.0). If you set server_tokens to off, the server header will only indicate Nginx.
  • On error pages, Nginx indicates the version number in the footer. If you set server_tokens to off, the footer on error pages will only indicate Nginx.
  • If using the build value, Nginx will output the build value specified during compilation.

If you are running an older version of Nginx and do not plan to update it, it might be a good idea to hide your version number for security reasons.

Syntax: on, off , or  build Default value: on

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.185.40