Alias Root
Nginx configuration with two specified directories of instructions, Root and alias
location/img/ {alias/var/www/image/ ;} #若按照上述配置的话, when accessing the files in the/img/directory, NINGX will automatically go to/var/www/image/directory to find Files location/img/ {root/var/www/image ;} #若按照这种配置的话, when you access files in the/img/directory, Nginx will go to the/var/www/image/img/directory to find files. ]
Alias is the definition of a directory alias, and Root is the definition of the topmost directory.
Another important difference is that alias must end with "/", otherwise the file will not be found and root is optional.
Client_body_in_file_only
Syntax
client_body_in_file_only On|off
Default
off
Context
http, server, location
If this option is on, the client's request body will be written to a file, and after processing the request, the file will not be deleted, which can be used for debugging.
Client_body_in_single_buffer
Syntax
Client_body_in_single_buffer
Default
off
Context
http, server, location
This option specifies whether the entire request body is placed in the
a client request buffer. When using It is recommended to enable this option when $request _body variable to reduce the cost of copying operations.
Client_body_buffer_size
Syntax
client_body_buffer_size the_size
Default
8k/16k
Context
http, server, location
This directive specifies the size of the client request body, if the size of the request body is exceeded, then the entire request body or part will be written to the temporary file
The default size is 2 pages.
Client_body_temp_path
Syntax
Client_body_temp_path Dir-path [Level1 [Level2 [LEVEL3]
Default
client_body_temp
Context
http, server, location
This option specifies the path to the storage directory for storing temporary files for client requests
Client_body_timeout
Syntax
client_body_timeout Time
Default
-
Context
http, server, location
This option specifies the read time-out period for the client request body
This option only works if the request body is not read at a time, and if the client does not send any data, the Nginx will return "Request Time Out" (408). Error
Client_header_buffer_size
Syntax
client_header_buffer_size Size
Default
1k
Context
http, Server
This directive specifies the size of the buffer used to store the client request header. The default is 1k size, which is sufficient for most requests.
However, if a request header contains a very large cookie, or the request is from a wap-client, then 1k of space can not accommodate, at this time Nginx will request a larger memory space to store please start, this larger buffer size, can be
Large_client_header_buffers directives to specify.
Client_header_timeout
Syntax
client_header_timeout Time
Default
-
Context
http, Server
This directive specifies the timeout period of the Nginx read request header, and if it exceeds that time, Nginx will return "Request Time Out" (408). Error
Client_max_body_size
Syntax
client_max_body_size Size
Default
client_max_body_size 1m
Context
http, server, location
This directive specifies the maximum space for the client request body, and if this size is exceeded, Nginx returns Request Entity Too Large "(413). Error, this option needs to be used sparingly so that the browser may not display the error correctly.
Default_type
Syntax
Default_type Mime-type
Default
Default_type Text/plain
context:
HTTP, server, location
The directive specifies the type of default MIME associated with the file
Copyright notice: This article for Bo Master original article, without Bo Master permission not reproduced.
Above introduces the Nginx Core module directive one, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.