Some parameter records of Nginx configuration file in work

Source: Internet
Author: User

Reset_timedout_connection on tells Nginx to close the unresponsive client connection. This will release the memory space occupied by that client.

Tcp_nopush on tells Nginx to send all header files in one packet without sending them one after the other

Client_header_timeout 20 and Client_body_timeout 20 set the time-out for the request header and the request body (respectively). We can also set this down to a few seconds.

Send_timeout 20 Specifies the response time-out for the client. This setting is not used for the entire forwarder, but is a unit of seconds between two client read operations

Server_tokens off the Nginx version number in the error page

Open_file_cache max=56000 inactive=30s When the cache is opened, it also specifies the maximum number of caches, as well as the time of the cache. We can set a relatively high maximum time so that we can erase them after they are inactive for more than 20 seconds.

Multi_accept on tells Nginx to accept as many connections as possible after receiving a new connection notification

Open_file_cache_valid specifying the interval of time to detect the validity of cache information in Open_file_cache

Open_file_cache_min_uses 2 If the cached entries are used more than 2 times in the time specified above, the cache entry is not deleted.

Open_file_cache_errors on specifies whether to cache error messages when searching for a file, including adding files to the configuration again.

Some parameter records of Nginx configuration file in work

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.