Disable Nginx version display

Source: Internet
Author: User

Enable Nginx to disable the version display information. Nginx will display a highlighted version number prompt in the http header or when an error page appears. To ensure security, you can disable this information. The method is very simple, just in nginx. the server_tokens parameter is added to the http {of conf, for example, [plain] http {include mime. types; default_type application/octet-stream; server_tokens off; # disable the version display client_header_timeout 3 m; client_body_timeout 3 m; send_timeout 3 m; Use the curl tool to test the result as follows: [html] HTTP/1.1 301 Moved Permanently Server: nginx Date: Fri, 11 Dec 2009 01:47:53 GMT Content-Type: text/html Content-Length: 178 Connection: keep-alive Keep-Alive: timeout = 20 Location: http: // www. ***. cn/index

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.