1, common public parameter (usually on http below, although many parameters are supported server and location)
keepalive_timeout 60; # in s
keepalive_request 2; # client is provided with the above timeouts really disconnected;
tcp_nodeloy on; # is used to set whether to allow the socket TCP_NODELAY, the default is ON;
tcp_nopush on; # is used to set whether to allow the socket TCP_NOPUSH, the default is OFF;
# Set the timeout for the client to establish tcp handshake; send_timeout 10
send_file on; # is used to enable the sendfile () function is used to set ON;
client_max_body_size 100m; # sets the maximum allowed receiving client requests content beyond this value 413 will return HTTP
client_body_buffer_size 128K; # specifies the size of the buffer for a client requesting content (content user) is greater than if the client requests content settings, enables temporary files
client_body_temp_path / usr / local / nginx / client_body_temp /; # Set client_body_buffer_size temporary file directory
client_head_buffer_size 20k; # for buffering the client request header (header body Request Header), with the cookie if it requires special attention to increase point, the default value 1kn
server_names_hash_max_size 512; # server_name for limiting the size of the hash, that is gross understanding server_name byte length r
server_tokens off; # mainly used to set the response header nginx version display, representative Close OFF, turn ON, the default configuration on, for safety reasons, usually selected OFF;