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... 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
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.