NGINX HTTP Core

545 — 所有核心与模块指令——语法、默认值、上下文与真实配置示例。

absolute_redirect The `absolute_redirect` 指令控制 NGINX 在重定向请求时是否使用绝对 URIs。 httpserverlocation access_log NGINX 中的 access_log 指令指定服务器处理请求的日志文件路径。 httpserverlocation add_after_body `add_after_body` 指令会在响应的主体发送给客户端后追加额外内容。 httpserverlocation add_before_body 指令 `add_before_body` 允许你在 NGINX 的 HTTP 响应体之前插入额外内容。 httpserverlocation add_header `add_header` 指令在 NGINX 中设置 HTTP 响应头。 httpserverlocation add_header_inherit `add_header_inherit` 指令允许在 NGINX 配置的指定上下文级别应用继承的头部指令。 httpserverlocation add_trailer `add_trailer` 指令允许您在 HTTP/2 和 HTTP/3 协议的 response trailer 中追加自定义 headers。 httpserverlocation add_trailer_inherit `add_trailer_inherit` 指令配置是否在 NGINX HTTP 服务器上下文中继承来自代理响应的 trailer headers。 httpserverlocation addition_types 'addition_types' 指令允许用户指定自定义 MIME 类型,根据文件扩展名将其添加到响应的 Content-Type 头中。 httpserverlocation aio 'aio' 指令在 NGINX 中启用异步 I/O 操作,以提高性能。 httpserverlocation aio_write aio_write 指令允许异步写入文件以提高性能。 httpserverlocation alias 'alias' 指令为 NGINX 提供了一个用于处理特定请求的备用路径,实际上将请求 URI 映射到本地文件系统路径。 location allow NGINX 中的 'allow' 指令根据 IP 地址或 CIDR 块控制对资源的访问。 httpserverlocation ancient_browser 'ancient_browser' 指令控制如何处理来自过时网页浏览器的请求,允许对其进行重定向或以不同方式响应。 httpserverlocation ancient_browser_value 设置用于处理来自非常旧浏览器的请求的值。 httpserverlocation auth_basic 在 NGINX 中,`auth_basic` 指令为指定的上下文启用基本认证。 httpserverlocation auth_basic_user_file auth_basic_user_file 指令指定一个包含用于 HTTP 基本认证的用户名和密码哈希的文件。 httpserverlocation auth_delay auth_delay 指令在认证响应中引入可配置的延迟。 httpserverlocation auth_request auth_request 指令用于通过指定一个在授予资源访问之前会被检查的位置来实现基于子请求的认证。 httpserverlocation auth_request_set `auth_request_set` 指令根据内部认证请求的响应设置一个变量。 httpserverlocation autoindex 'autoindex' 指令可在 NGINX 中启用或禁用目录索引。 httpserverlocation autoindex_exact_size 指令 `autoindex_exact_size` 控制是否在 autoindex 模块生成的目录列表中显示精确的文件大小。 httpserverlocation autoindex_format 'autoindex_format' 指令定义了 NGINX 的 autoindex 模块生成的目录列表的格式。 httpserverlocation autoindex_localtime 指令 `autoindex_localtime` 启用在目录列表中显示本地时间。 httpserverlocation break 'break' 指令停止对当前 location 的处理,并阻止对后续 rewrite 或 location 块的进一步处理。 serverlocationif in server charset 'charset' 指令为 NGINX 的 server 或 location 块指定字符集。 httpserverlocation charset_map charset_map 指令在 NGINX 中定义了字符集与其等效 MIME 组件之间的映射。 http charset_types 指令 `charset_types` 定义了在 NGINX 中为哪些 MIME types 设置指定字符集。 httpserverlocation chunked_transfer_encoding 'chunked_transfer_encoding' 指令在 NGINX 中启用或禁用 HTTP 响应的分块传输编码。 httpserverlocation client_body_buffer_size The `client_body_buffer_size` 指令设置读取客户端请求主体到内存时的缓冲区大小。 httpserverlocation client_body_in_file_only 指令 `client_body_in_file_only` 控制请求体是否仅保存到文件中。 httpserverlocation client_body_in_single_buffer ‘client_body_in_single_buffer’ 指令用于控制是否将客户端请求体读取到单个缓冲区。 httpserverlocation client_body_temp_path `client_body_temp_path` 指令设置用于存放与客户端请求主体相关的临时文件的文件系统路径。 httpserverlocation client_body_timeout `client_body_timeout` 指令为读取客户端请求主体设置时间限制。 httpserverlocation client_header_buffer_size 设置用于读取客户端请求头的缓冲区大小。 httpserver client_header_timeout 设置读取客户端请求头的超时时间。 httpserver client_max_body_size 限制客户端请求正文的最大大小。 httpserverlocation connection_pool_size connection_pool_size 指令设置 NGINX HTTP 服务器用于处理客户端请求的连接池大小。 httpserver create_full_put_path 'create_full_put_path' 指令可为 PUT 请求创建完整的目录路径。 httpserverlocation dav_access 在 NGINX 中,`dav_access` 指令用于控制对 WebDAV 资源的访问权限。 httpserverlocation dav_methods `dav_methods` 指令指定了在 NGINX 中为 WebDAV(Web 分布式创作与版本控制)功能允许使用的 HTTP 方法。 httpserverlocation default_type 当未定义具体类型时,`default_type` 指令为文件和响应设置默认的 MIME 类型。 httpserverlocation degradation 在 http 上下文中,当满足特定条件时,'degradation' 指令用于指定请求的处理方式。 http degrade 'degrade' 指令用于在主服务器不可用时控制回退机制。 httpserverlocation deny 'deny' 指令限制对指定客户端 IP 地址或网络的访问。 httpserverlocation directio 'directio' 指令启用直接 I/O,用于读写文件,绕过操作系统缓存。 httpserverlocation directio_alignment 为 NGINX 中的 direct I/O 操作设置对齐。 httpserverlocation disable_symlinks 在处理请求时,`disable_symlinks` 指令控制是否在文件系统级别允许使用符号链接。 httpserverlocation early_hints 该 `early_hints` 指令允许 NGINX 在最终响应之前发送 HTTP 103 Early Hints 响应。 httpserverlocation empty_gif 'empty_gif' 指令配置 NGINX 以提供一个空白 GIF 图像。 location error_page `error_page` 指令为指定的 HTTP 状态码配置自定义错误页面。 httpserverlocation etag 'etag' 指令控制 NGINX 中 ETag 响应头的生成。 httpserverlocation expires 'expires' 指令控制 NGINX 中对指定资源的 'Expires' 和 'Cache-Control' HTTP 头的自动设置。 httpserverlocation fastcgi_bind `fastcgi_bind` 指令配置 FastCGI 服务器用于接受请求的绑定地址。 httpserverlocation fastcgi_buffer_size 设置用于读取 FastCGI 响应前部分的缓冲区大小。 httpserverlocation fastcgi_buffering 指令 `fastcgi_buffering` 控制是否缓冲来自 FastCGI 服务器的响应。 httpserverlocation fastcgi_buffers 'fastcgi_buffers' 指令设置用于从 FastCGI 服务器读取响应时使用的缓冲区数量和大小。 httpserverlocation fastcgi_busy_buffers_size `fastcgi_busy_buffers_size` 指令设置 FastCGI 用于缓存来自上游服务器响应的繁忙缓冲区的大小。 httpserverlocation fastcgi_cache fastcgi_cache 指令启用对来自 FastCGI 服务器的响应进行缓存,以提升 Web 应用的性能。 httpserverlocation fastcgi_cache_background_update 指令 `fastcgi_cache_background_update` 允许在提供当前响应的同时在后台更新缓存。 httpserverlocation fastcgi_cache_bypass `fastcgi_cache_bypass` 指令允许您指定在何种条件下应绕过 FastCGI 缓存。 httpserverlocation fastcgi_cache_key 指令 `fastcgi_cache_key` 定义 FastCGI 缓存机制使用的缓存键。 httpserverlocation fastcgi_cache_lock 'fastcgi_cache_lock' 指令控制 FastCGI 缓存操作的锁定行为,以避免多个同时请求导致的缓存风暴。 httpserverlocation fastcgi_cache_lock_age 指令 `fastcgi_cache_lock_age` 用于配置在请求重试之前等待 `FastCGI` 缓存锁可用的时间。 httpserverlocation fastcgi_cache_lock_timeout 设置获取 FastCGI 缓存锁的最大等待时间。 httpserverlocation fastcgi_cache_max_range_offset 控制 FastCGI 缓存中范围请求允许的最大偏移量。 httpserverlocation fastcgi_cache_methods fastcgi_cache_methods 指令指定哪些 HTTP 方法应由 FastCGI 缓存。 httpserverlocation fastcgi_cache_min_uses 设置在 FastCGI 缓存中缓存响应之前的最小使用次数。 httpserverlocation fastcgi_cache_path 指定在使用 FastCGI 缓存时存储缓存数据的路径。 http fastcgi_cache_revalidate The 'fastcgi_cache_revalidate' 指令控制 NGINX 是否会重新验证缓存的 FastCGI 响应。 httpserverlocation fastcgi_cache_use_stale `fastcgi_cache_use_stale` 指令控制是否在特定情形下返回过期的缓存响应,例如当上游服务器宕机或请求超时时。 httpserverlocation fastcgi_cache_valid 配置有效缓存响应在 FastCGI 缓存中保留的持续时间。 httpserverlocation fastcgi_catch_stderr 'fastcgi_catch_stderr' 指令控制 NGINX 是否捕获来自 FastCGI 应用程序的标准错误输出。 httpserverlocation fastcgi_connect_timeout 为尝试连接 FastCGI 服务器设置超时时间。 httpserverlocation fastcgi_force_ranges `fastcgi_force_ranges` 指令强制 FastCGI 服务器对字节范围请求以 `206 Partial Content` 状态进行响应。 httpserverlocation fastcgi_hide_header 'fastcgi_hide_header' 指令控制哪些来自 FastCGI 响应的 HTTP 头会对客户端隐藏。 httpserverlocation fastcgi_ignore_client_abort fastcgi_ignore_client_abort 指令用于控制 NGINX 在处理 FastCGI 请求时是否应忽略客户端断开连接。 httpserverlocation fastcgi_ignore_headers `fastcgi_ignore_headers` 指令配置 NGINX 忽略 FastCGI 响应返回的特定 HTTP 头。 httpserverlocation fastcgi_index 当处理的 FastCGI 请求没有指定文件名时,`fastcgi_index` 指令设置要提供的默认文件。 httpserverlocation fastcgi_intercept_errors 指令 `fastcgi_intercept_errors` 将 NGINX 配置为拦截来自 FastCGI 响应的错误,以便进行自定义错误处理。 httpserverlocation fastcgi_keep_conn 指令 `fastcgi_keep_conn` 控制在收到响应后是否保持与 FastCGI 服务器的连接打开。 httpserverlocation fastcgi_limit_rate 指令 'fastcgi_limit_rate' 限制 NGINX 向 FastCGI 服务器发送数据的速率。 httpserverlocation fastcgi_max_temp_file_size 指令 'fastcgi_max_temp_file_size' 设置用于 FastCGI 响应的临时文件允许的最大大小。 httpserverlocation fastcgi_next_upstream NGINX 中的 'fastcgi_next_upstream' 指令用于确定在何种情况下,应将 FastCGI 请求传递到 FastCGI… httpserverlocation fastcgi_next_upstream_timeout 为 NGINX 中 FastCGI 的后续上游请求设置超时时间。 httpserverlocation fastcgi_next_upstream_tries 指令 `fastcgi_next_upstream_tries` 控制在 FastCGI 请求失败时 NGINX 重试下一个上游服务器的次数。 httpserverlocation fastcgi_no_cache `fastcgi_no_cache` 指令根据指定条件控制是否缓存来自 FastCGI 应用的响应。 httpserverlocation fastcgi_param 在 NGINX 中为 FastCGI 请求设置参数。 httpserverlocation fastcgi_pass `fastcgi_pass` 指令将请求转发到 FastCGI 服务器进行处理,通常与 PHP 和其他 Web 应用一起使用。 locationif in location fastcgi_pass_header 'fastcgi_pass_header' 指令指定应从 FastCGI 服务器传递到客户端响应的哪些头部。 httpserverlocation fastcgi_pass_request_body 指令 `fastcgi_pass_request_body` 用于控制是否将请求体转发到 FastCGI 服务器。 httpserverlocation fastcgi_pass_request_headers 'fastcgi_pass_request_headers' 指令控制将请求头传递给 FastCGI 服务器的行为。 httpserverlocation fastcgi_read_timeout 指令 `fastcgi_read_timeout` 设置 NGINX 在超时之前等待来自 FastCGI 服务器响应的最长时间。 httpserverlocation fastcgi_request_buffering 指令 `fastcgi_request_buffering` 控制是否为 FastCGI 请求启用请求体缓冲。 httpserverlocation fastcgi_send_lowat `fastcgi_send_lowat` 指令设置了在发送操作被视为阻塞之前,NGINX 向 FastCGI 服务器可发送的数据量限制。 httpserverlocation fastcgi_send_timeout 设置向 FastCGI 服务器发送响应的超时时间。 httpserverlocation fastcgi_socket_keepalive `fastcgi_socket_keepalive` 指令用于启用或禁用 FastCGI socket connections 的 keepalive 功能。 httpserverlocation fastcgi_split_path_info fastcgi_split_path_info 指令用于将 URI 拆分为两部分,这在向 FastCGI 应用传递特定路径信息时尤其有用。 httpserverlocation fastcgi_store fastcgi_store 指令允许将 FastCGI 响应存储到磁盘上的指定位置。 httpserverlocation fastcgi_store_access 'fastcgi_store_access' 指令控制 NGINX 中 FastCGI 模块创建的已存储文件的访问。 httpserverlocation fastcgi_temp_file_write_size `fastcgi_temp_file_write_size` 指令配置由 FastCGI 响应写入的临时文件的最大大小。 httpserverlocation fastcgi_temp_path 指令 `fastcgi_temp_path` 设置 NGINX 中 FastCGI 处理程序使用的临时文件路径。 httpserverlocation flv 'flv' 指令在 NGINX 中启用或禁用对 FLV 视频文件的流式处理。 location geo NGINX 中的 `geo` 指令定义了一个变量,该变量可以根据客户端 IP 地址或其他地理位置进行设置。 http geoip_city `geoip_city` 指令允许配置基于 IP 地址的地理定位查询以返回城市级信息。 http geoip_country `geoip_country` 指令用于指定 GeoIP 数据库的位置,以在 NGINX 中启用基于 IP 的地理定位。 http geoip_org `geoip_org` 指令允许 NGINX 指定与正在访问的 IP 地址关联的组织名称。 http geoip_proxy `geoip_proxy` 指令用于配置 GeoIP 模块,以根据 proxy protocol 确定 IP 地址的地理位置。 http geoip_proxy_recursive 此指令在 NGINX 中为代理服务器启用递归的地理 IP 查找。 http grpc_bind `grpc_bind` 指令指定用于在 NGINX 中绑定服务器以处理 gRPC 流量的地址和端口。 httpserverlocation grpc_buffer_size grpc_buffer_size 指令指定了在 NGINX 中用于从上游服务器读取 gRPC 响应的缓冲区大小。 httpserverlocation grpc_connect_timeout 设置与 gRPC 后端服务器建立连接的超时时间。 httpserverlocation grpc_hide_header grpc_hide_header 指令可阻止 gRPC 响应中的特定头部被发送到客户端。 httpserverlocation grpc_ignore_headers grpc_ignore_headers 指令指定在处理请求时要忽略哪些 gRPC 头部。 httpserverlocation grpc_intercept_errors 指令 `grpc_intercept_errors` 用于在 NGINX 中启用或禁用对 gRPC 错误代码的拦截。 httpserverlocation grpc_next_upstream 当对 gRPC 上游服务器的请求失败时,`grpc_next_upstream` 指令控制 NGINX 的行为。 httpserverlocation grpc_next_upstream_timeout 为 gRPC 请求中连接下一个上游服务器设置超时时间。 httpserverlocation grpc_next_upstream_tries `grpc_next_upstream_tries` 指令控制在使用 gRPC 处理客户端请求时尝试联系上游服务器的次数。 httpserverlocation grpc_pass grpc_pass 指令用于将 gRPC 请求转发到 gRPC 后端服务器。 locationif in location grpc_pass_header `grpc_pass_header` 指令配置应在 gRPC 请求中转发哪些 HTTP 头。 httpserverlocation grpc_read_timeout 在 NGINX 中为从 gRPC 服务器读取响应设置超时。 httpserverlocation grpc_send_timeout 定义向客户端发送 gRPC 响应的超时时间。 httpserverlocation grpc_set_header 为请求设置 gRPC 头。 httpserverlocation grpc_socket_keepalive grpc_socket_keepalive 指令在 NGINX 中为 gRPC 连接启用 TCP keepalive。 httpserverlocation grpc_ssl_certificate `grpc_ssl_certificate` 指令指定用于保护 gRPC 流量的 SSL 证书文件。 httpserverlocation grpc_ssl_certificate_cache grpc_ssl_certificate_cache 指令配置用于 gRPC 通信的 SSL 证书的缓存行为,从而优化性能。 httpserverlocation grpc_ssl_certificate_key grpc_ssl_certificate_key 指令指定用于 gRPC 通信的 SSL 证书的私钥文件。 httpserverlocation grpc_ssl_ciphers `grpc_ssl_ciphers` 指令指定 NGINX 在 gRPC 服务的 SSL/TLS 连接中将使用的密码套件。 httpserverlocation grpc_ssl_conf_command grpc_ssl_conf_command 指令在 NGINX 中为 gRPC 连接配置 SSL 参数。 httpserverlocation grpc_ssl_crl grpc_ssl_crl 指令指定 NGINX 中 gRPC SSL 连接使用的 Certificate Revocation List (CRL) 文件。 httpserverlocation grpc_ssl_name grpc_ssl_name 指令在使用 SSL 时指定 gRPC 服务器的主机名。 httpserverlocation grpc_ssl_password_file `grpc_ssl_password_file` 指令指定包含用于解密用于 gRPC 通信的 SSL 证书的密码的文件的路径。 httpserverlocation grpc_ssl_protocols 指令 `grpc_ssl_protocols` 用于设置 gRPC 通信允许的 SSL/TLS 协议。 httpserverlocation grpc_ssl_server_name 启用在 gRPC SSL 握手中使用服务器名称以匹配 Server Name Indication (SNI)。 httpserverlocation grpc_ssl_session_reuse 在 NGINX 中启用或禁用 gRPC 连接的 SSL 会话重用。 httpserverlocation grpc_ssl_trusted_certificate grpc_ssl_trusted_certificate 指令指定一个受信任的证书文件,用于在通过 SSL/TLS 的 gRPC 连接中验证远程对等方的证书。 httpserverlocation grpc_ssl_verify 指令 `grpc_ssl_verify` 用于配置在发起请求时是否验证 gRPC 服务器的 SSL 证书。 httpserverlocation grpc_ssl_verify_depth `grpc_ssl_verify_depth` 指令设置 gRPC 通信中 SSL 证书链的最大验证深度。 httpserverlocation gunzip gunzip 指令在 NGINX 中启用或禁用对 gzip 压缩响应的解压缩。 httpserverlocation gunzip_buffers gunzip_buffers 指令在 NGINX 中配置解压响应数据的缓冲区大小。 httpserverlocation gzip gzip 指令在 NGINX 中用于启用或禁用 gzip 压缩。 httpserverlocation gzip_buffers gzip_buffers 指令控制在 NGINX 中用于 gzip 压缩的缓冲区数量和大小。 httpserverlocation gzip_comp_level 指令 `gzip_comp_level` 在 NGINX 中设置 gzip 内容编码的压缩级别。 httpserverlocation gzip_disable gzip_disable 指令根据指定的 user-agent 值控制是否禁用 Gzip 压缩。 httpserverlocation gzip_hash 指令 `gzip_hash` 指定在 NGINX 中用于 gzip 压缩设置的哈希算法。 httpserverlocation gzip_http_version gzip_http_version 指令设置了 NGINX 应用 gzip 压缩所需的最低 HTTP 版本。 httpserverlocation gzip_min_length 设置用于 Gzip 压缩的响应主体最小长度。 httpserverlocation gzip_no_buffer 'gzip_no_buffer' 指令禁用 gzip 压缩输出的缓冲。 httpserverlocation gzip_proxied `gzip_proxied` 指令根据指定条件控制对代理请求的 gzip 压缩。 httpserverlocation gzip_static 如果磁盘上存在预先压缩的 gzip 文件,则允许 NGINX 直接提供这些文件。 httpserverlocation gzip_types gzip_types 指令指定应使用 gzip 压缩的 MIME 类型。 httpserverlocation gzip_vary `gzip_vary` 指令用于控制是否在针对经 `gzip` 压缩的内容的响应中包含 `Vary: Accept-Encoding` 响应头。 httpserverlocation gzip_window gzip_window 指令设置 NGINX 中 gzip 压缩的滑动窗口大小。 httpserverlocation hash 'hash' 指令设置用于在 NGINX 中将请求分配到上游服务器的 hash 算法。 upstream http2 在 NGINX 配置的指定上下文中启用 HTTP/2 支持。 httpserver http2_body_preread_size http2_body_preread_size 指令设置在处理之前可以预先读取并缓冲的 HTTP/2 请求主体的最大大小。 httpserver http2_chunk_size 指令 'http2_chunk_size' 设置服务器可发送的 HTTP/2 响应帧有效负载的最大大小。 httpserverlocation http2_idle_timeout 设置空闲 HTTP/2 连接保持打开的持续时间。 httpserver http2_max_concurrent_pushes 限制 NGINX 可执行的并发 HTTP/2 推送的最大数量。 httpserver http2_max_concurrent_streams 设置单个 HTTP/2 连接上可建立的最大并发流数量。 httpserver http2_max_field_size 指令 `http2_max_field_size` 设置 HTTP/2 头字段的最大大小。 httpserver http2_max_header_size http2_max_header_size 指令对 HTTP/2 请求和响应的头部最大尺寸设置了限制。 httpserver http2_max_requests http2_max_requests 指令配置每个连接可处理的最大并发 HTTP/2 请求数。 httpserver http2_pool_size http2_pool_size 指令设置 NGINX 中 HTTP/2 连接池的大小。 httpserver http2_push http2_push 指令在 NGINX 中为特定资源启用 HTTP/2 服务器推送。 httpserverlocation http2_push_preload 为动态预加载的资源启用 HTTP/2 服务端推送。 httpserverlocation http2_recv_buffer_size 在 NGINX 中设置用于 HTTP/2 连接的接收缓冲区大小。 http http2_recv_timeout http2_recv_timeout 指令设置在 HTTP/2 连接上等待客户端发送数据的最长时间,超过该时间则超时。 httpserver http2_streams_index_size 指令 'http2_streams_index_size' 在 NGINX 中设置 HTTP/2 流索引的大小。 httpserver http3 http3 指令在 NGINX 中启用对 HTTP/3 协议的支持。 httpserver http3_hq 在 NGINX 中启用对 HTTP/3 的支持。 httpserver http3_max_concurrent_streams 设置每个连接允许的最大并发 HTTP/3 流数量。 httpserver http3_stream_buffer_size 'http3_stream_buffer_size' 指令用于在 NGINX 中设置 QUIC 流数据的缓冲区大小。 httpserver if 'if' directive 允许根据指定条件对请求进行条件处理。 serverlocation if_modified_since 'if_modified_since' 指令控制 NGINX 如何根据指定资源的 Last-Modified 时间戳来响应请求。 httpserverlocation ignore_invalid_headers `ignore_invalid_headers` 指令控制 NGINX 是否应在 HTTP 请求中忽略无效头部。 httpserver image_filter NGINX 中的 image_filter 指令允许对图像文件进行实时操作和过滤。 location image_filter_buffer `image_filter_buffer` 指令设置用于在 NGINX 中进行图像处理的缓冲区大小。 httpserverlocation image_filter_interlace image_filter_interlace 指令为由 NGINX 的 image filter module 处理的图像启用交错。 httpserverlocation image_filter_jpeg_quality 设置 NGINX 图像处理的 JPEG 图像质量。 httpserverlocation image_filter_sharpen 'image_filter_sharpen' 指令对由 NGINX 提供的图像应用锐化滤镜。 httpserverlocation image_filter_transparency 'image_filter_transparency' 指令控制由 NGINX 的图像过滤模块处理的图像的透明度。 httpserverlocation image_filter_webp_quality 设置 NGINX 在过滤过程中 WebP 图像的质量。 httpserverlocation include 'include' 指令允许在 NGINX 配置文件中包含配置文件,从而便于实现模块化配置。 index 'index' 指令定义在请求目录时要提供的默认文件。 httpserverlocation internal internal 指令将某个 location 标记为仅可从 NGINX 内部访问,阻止外部客户端直接访问该 location。 location ip_hash `ip_hash` 指令通过将来自相同客户端 IP 地址的请求路由到同一 upstream 组内的同一台服务器,从而实现会话持久性。 upstream keepalive 在 upstream 上下文中,`keepalive` 指令允许维护 HTTP keepalive 连接。 upstream keepalive_disable `keepalive_disable` 指令为指定的用户代理禁用 HTTP 持久连接。 httpserverlocation keepalive_min_timeout 设置 NGINX 与客户端之间 keep-alive 连接的最小超时时间。 httpserverlocation keepalive_requests `keepalive_requests` 指令限制了可以通过单个 keepalive 连接发送的请求数量。 upstream keepalive_time keepalive_time 指令设置 upstream 中现有连接在被关闭前可保持空闲的时间。 upstream keepalive_timeout keepalive_timeout 指令为到上游服务器的长连接设置超时时间。 upstream large_client_header_buffers 'large_client_header_buffers' 指令在 NGINX 中配置用于读取大型客户端请求头的缓冲区数量和大小。 httpserver least_conn NGINX 中的 'least_conn' 指令在 upstream 组中选择活动连接数最少的服务器。 upstream limit_conn `limit_conn` 指令限制来自单个 IP 地址的并发连接数。 httpserverlocation limit_conn_dry_run `limit_conn_dry_run` 指令允许在不强制执行连接限制的情况下进行测试。 httpserverlocation limit_conn_log_level `limit_conn_log_level` 指令设置超过连接限制时的日志级别。 httpserverlocation limit_conn_status `limit_conn_status` 指令设置在超出连接限制时返回的 HTTP 状态码。 httpserverlocation limit_conn_zone 'limit_conn_zone' 指令创建一个共享内存区域,用于限制每个指定键的并发连接数。 http limit_except 'limit_except' 指令在指定的 location block 中限制 HTTP 请求方法。 location limit_rate `limit_rate` 指令限制发送给客户端的响应带宽。 httpserverlocation limit_rate_after 'limit_rate_after' 指令允许你指定在开始限制速率之前可以发送给客户端的一定数据量。 httpserverlocation limit_req 'limit_req' 指令控制 NGINX 处理请求的速率,以防止过载。 httpserverlocation limit_req_dry_run limit_req_dry_run 指令允许您在不实际强制执行的情况下测试限流。 httpserverlocation limit_req_log_level 在 NGINX 中,`limit_req_log_level` 指令用于设置请求限制日志的日志级别。 httpserverlocation limit_req_status `limit_req_status` 指令指定当请求因速率限制而被拒绝时返回给客户端的 HTTP 状态码。 httpserverlocation limit_req_zone 'limit_req_zone' 指令用于设置一个共享内存区,以根据定义的键限制请求速率。 http lingering_close 指令 `lingering_close` 在 NGINX 中为 HTTP 连接启用或禁用延迟关闭。 httpserverlocation lingering_time NGINX 中的 'lingering_time' 指令指定在关闭连接之前等待请求的时间。 httpserverlocation lingering_timeout 设置连接延迟关闭的超时时间。 httpserverlocation listen 'listen' 指令定义了 server block 所监听的 IP 地址和端口。 server location `location` 指令定义了 NGINX 应如何根据 URI 处理请求。 serverlocation log_format 'log_format' 指令定义了 NGINX 写入日志的格式。 http log_not_found log_not_found 指令控制是否记录对缺失文件的请求。 httpserverlocation log_subrequest 指令 `log_subrequest` 控制是否在 NGINX 的错误日志中记录子请求。 httpserverlocation map 'map' 指令创建一个变量,该变量根据指定的输入值设置,从而在 NGINX 中实现条件配置。 http map_hash_bucket_size 定义用于在 NGINX 的 map 模块中存储键的哈希桶大小。 http map_hash_max_size 设置 NGINX HTTP 核心中用于将键映射到值的哈希表的最大大小。 http max_ranges 'max_ranges' 指令限制 NGINX 服务器在单次响应中处理的 HTTP 范围请求数量。 httpserverlocation memcached_bind 'memcached_bind' 指令指定 memcached 服务器将监听的地址。 httpserverlocation memcached_buffer_size 指令 `memcached_buffer_size` 设置用于存储来自 memcached 服务器响应的缓冲区大小。 httpserverlocation memcached_connect_timeout 设置在 NGINX HTTP 服务器上下文中连接到 memcached 服务器的超时时间。 httpserverlocation memcached_gzip_flag The 'memcached_gzip_flag' 指令控制 NGINX 中来自 memcached 服务器的响应是否进行压缩。 httpserverlocation memcached_next_upstream `memcached_next_upstream` 指令在与 memcached 服务器的连接失败时配置 NGINX 的行为。 httpserverlocation memcached_next_upstream_timeout memcached_next_upstream_timeout 指令设置重试对 memcached 服务器的失败请求的超时时间。 httpserverlocation memcached_next_upstream_tries 指令 `memcached_next_upstream_tries` 用于配置在将请求判定为失败之前要尝试多少个 memcached 服务器。 httpserverlocation memcached_pass `memcached_pass` 指令用于将请求路由到 memcached 服务器。 locationif in location memcached_read_timeout 指令 `memcached_read_timeout` 指定从 memcached 服务器读取响应的超时时间。 httpserverlocation memcached_send_timeout 为向 memcached 服务器发送请求设置超时。 httpserverlocation memcached_socket_keepalive 此指令用于启用或禁用 memcached 套接字连接的 TCP keepalive 功能。 httpserverlocation merge_slashes 'merge_slashes' 指令用于控制 NGINX 如何处理 URI 中连续出现的多个斜杠。 httpserver min_delete_depth 指令 `min_delete_depth` 在 NGINX 的文件系统处理过程中设置目录删除的最小深度。 httpserverlocation mirror NGINX 中的 `mirror` 指令用于为指定的上游服务器创建重复请求,实际效果是将传入请求镜像到后端,而不影响原始响应。 httpserverlocation mirror_request_body 'mirror_request_body' 指令控制是否在 NGINX 中镜像请求体。 httpserverlocation modern_browser 'modern_browser' 指令允许在 NGINX 中对现代网页浏览器的兼容性进行微调。 httpserverlocation modern_browser_value `modern_browser_value` 指令在 NGINX HTTP Core 模块中控制针对现代浏览器值的 HTTP 响应。 httpserverlocation mp4 在 NGINX 的 location 上下文中,'mp4' 指令启用 MP4 视频流支持。 location mp4_buffer_size 指令 `mp4_buffer_size` 设置用于在流式传输时读取 MP4 文件的缓冲区大小。 httpserverlocation mp4_max_buffer_size 为 NGINX 中的 MP4 文件流设置最大缓冲区大小。 httpserverlocation mp4_start_key_frame The `mp4_start_key_frame` 指令配置 HTTP MP4 流模块,从指定的关键帧开始视频播放。 httpserverlocation msie_padding 控制 NGINX 如何为 Internet Explorer 填充 HTTP 响应。 httpserverlocation msie_refresh `msie_refresh` 指令控制 Internet Explorer 浏览器的 HTTP 响应行为,以确保其正确刷新缓存的内容。 httpserverlocation open_file_cache NGINX 中的 `open_file_cache` 指令启用文件描述符的缓存,以提高文件提供的性能。 httpserverlocation open_file_cache_errors 'open_file_cache_errors' 指令控制在 NGINX 打开文件时是否缓存错误状态。 httpserverlocation open_file_cache_events open_file_cache_events 指令控制 NGINX 中打开文件事件的缓存行为。 httpserverlocation open_file_cache_min_uses 设置在将文件缓存到内存之前的最小访问次数。 httpserverlocation open_file_cache_valid open_file_cache_valid 指令指定缓存的文件信息被视为有效的时长。 httpserverlocation open_log_file_cache `open_log_file_cache` 指令通过缓存日志文件描述符来提升日志记录性能。 httpserverlocation output_buffers output_buffers 指令用于配置从上游服务器读取响应体时使用的缓冲区数量和大小。 httpserverlocation override_charset 指令 `override_charset` 允许服务器配置强制对响应使用特定字符集,覆盖 Content-Type 头中指定的任何字符集。 httpserverlocation perl 'perl' 指令使得可以在 NGINX 中使用 Perl 脚本来处理请求。 locationlimit_except perl_modules 'perl_modules' 指令指定要加载到 NGINX 服务器中的 Perl 模块。 http perl_require `perl_require` 指令在 NGINX 配置中加载一个 Perl 模块以供使用。 http perl_set `perl_set` 指令允许在 NGINX 配置中使用 Perl 代码设置变量。 http port_in_redirect 指令 `port_in_redirect` 控制 NGINX 生成的重定向中是否包含请求的端口号。 httpserverlocation post_action `post_action` 指令指定在向客户端发送响应后要执行的处理程序。 httpserverlocation postpone_gzipping 'postpone_gzipping' 指令控制 NGINX 在何时对响应应用 gzip 压缩,从而优化服务器资源。 httpserverlocation postpone_output 'postpone_output' 指令允许 NGINX 将发送到客户端的输出延迟到必要时再发送,从而优化资源使用。 httpserverlocation proxy_bind proxy_bind 指令配置用于与被代理服务器建立外发连接的本地 IP 地址。 httpserverlocation proxy_buffer_size 设置从代理服务器接收的响应缓冲区大小。 httpserverlocation proxy_buffering proxy_buffering 指令用于启用或禁用对来自被代理服务器的响应进行缓冲。 httpserverlocation proxy_buffers `proxy_buffers` 指令设置用于从被代理服务器读取响应时使用的缓冲区数量和大小。 httpserverlocation proxy_busy_buffers_size proxy_busy_buffers_size 指令设置在 NGINX 忙碌时用于存储来自代理服务器响应的缓冲区大小。 httpserverlocation proxy_cache NGINX 中的 'proxy_cache' 指令启用对代理内容的缓存,以改善响应时间并减轻服务器负载。 httpserverlocation proxy_cache_background_update 'proxy_cache_background_update' 指令允许在提供过期响应时更新缓存。 httpserverlocation proxy_cache_bypass 指令 `proxy_cache_bypass` 控制特定请求是否在 NGINX 中绕过代理缓存。 httpserverlocation proxy_cache_convert_head The 'proxy_cache_convert_head' directive controls whether a HEAD request can… httpserverlocation proxy_cache_key 指令 `proxy_cache_key` 设置用于缓存代理响应的键。 httpserverlocation proxy_cache_lock 当发生缓存未命中时,`proxy_cache_lock` 指令启用对同一资源请求的序列化,以减少对上游服务器的负载。 httpserverlocation proxy_cache_lock_age `proxy_cache_lock_age` 指令设置请求在等待缓存锁释放的最长时间,超过该时间将返回 504 响应。 httpserverlocation proxy_cache_lock_timeout 为获取缓存中代理响应的锁设置超时时间。 httpserverlocation proxy_cache_max_range_offset 指令 'proxy_cache_max_range_offset' 在 NGINX 中设置代理缓存响应允许的最大范围偏移。 httpserverlocation proxy_cache_methods proxy_cache_methods 指令指定在代理缓存中哪些 HTTP 方法可被缓存。 httpserverlocation proxy_cache_min_uses `proxy_cache_min_uses` 指令设置缓存响应必须被使用的最少次数,达到该次数之前该响应不被视为可用于提供服务。 httpserverlocation proxy_cache_path 当使用 NGINX 的代理缓存功能时,`proxy_cache_path` 指令设置用于存储缓存响应的路径。 http proxy_cache_revalidate `proxy_cache_revalidate` 指令控制 NGINX 在向客户端提供内容之前是否与源服务器对缓存条目进行重新验证。 httpserverlocation proxy_cache_use_stale proxy_cache_use_stale 指令控制何时向客户端提供过期的缓存响应。 httpserverlocation proxy_cache_valid 指令 `proxy_cache_valid` 定义了基于响应状态码缓存响应被视为有效的时长。 httpserverlocation proxy_connect_timeout proxy_connect_timeout 指令设置与被代理服务器建立连接的超时时间。 httpserverlocation proxy_cookie_domain proxy_cookie_domain 指令会重写从被代理服务器传来的 Set-Cookie 头中的 Domain 属性。 httpserverlocation proxy_cookie_flags 为代理响应设置 HTTP cookie 标志。 httpserverlocation proxy_cookie_path 'proxy_cookie_path' 指令修改被代理响应中 Set-Cookie 头的 Path 属性。 httpserverlocation proxy_force_ranges proxy_force_ranges 指令允许 NGINX 通过代理提供部分内容请求,方法是强制代理处理 Range 请求。 httpserverlocation proxy_headers_hash_bucket_size 设置 NGINX 中用于存储代理头的哈希桶大小。 httpserverlocation proxy_headers_hash_max_size 定义用于存储代理头的哈希表的最大大小。 httpserverlocation proxy_hide_header 在使用 proxy_pass 时,'proxy_hide_header' 指令会从发送给客户端的响应中移除指定的响应头。 httpserverlocation proxy_http_version 'proxy_http_version' 指令指定在与被代理服务器通信时使用的 HTTP 协议版本。 httpserverlocation proxy_ignore_client_abort 配置在处理代理请求时是否忽略客户端中断。 httpserverlocation proxy_ignore_headers `proxy_ignore_headers` 指令配置 NGINX 忽略来自被代理服务器的特定响应头。 httpserverlocation proxy_intercept_errors The `proxy_intercept_errors` directive is used to control whether NGINX… httpserverlocation proxy_limit_rate 在使用 proxy 模块时控制发送给客户端的响应速率。 httpserverlocation proxy_max_temp_file_size 'proxy_max_temp_file_size' 指令设置用于存储被代理响应的临时文件的最大大小。 httpserverlocation proxy_method 设置代理服务器在与后端通信时使用的 HTTP 请求方法。 httpserverlocation proxy_next_upstream `proxy_next_upstream` 指令控制在发生失败时请求是否应传递到下一个上游服务器。 httpserverlocation proxy_next_upstream_timeout 指令 'proxy_next_upstream_timeout' 在代理场景中设置尝试连接下一个上游服务器的超时时间。 httpserverlocation proxy_next_upstream_tries 当先前请求失败时,`proxy_next_upstream_tries` 指令控制与上游服务器通信的尝试次数。 httpserverlocation proxy_no_cache 在 NGINX 的 proxy 模块中,`proxy_no_cache` 指令用于阻止对指定请求的缓存。 httpserverlocation proxy_pass `proxy_pass` 指令会将客户端请求转发到指定的代理服务器。 locationif in locationlimit_except proxy_pass_header `proxy_pass_header` 指令指定应从被代理服务器传递到客户端的头部。 httpserverlocation proxy_pass_request_body `proxy_pass_request_body` 指令控制在 NGINX 中是否将请求体传递给被代理的服务器。 httpserverlocation proxy_pass_request_headers 指令 `proxy_pass_request_headers` 控制 NGINX 是否会将代理请求头传递给被代理服务器。 httpserverlocation proxy_pass_trailers `proxy_pass_trailers` 指令控制上游响应中 HTTP 尾部字段(trailers)的处理。 httpserverlocation proxy_read_timeout `proxy_read_timeout` 指令指定等待被代理服务器响应的时间。 httpserverlocation proxy_redirect `proxy_redirect` 指令修改被代理响应中的 `Location` 和 `Refresh` 头,以使其适合客户端。 httpserverlocation proxy_request_buffering 指令 `proxy_request_buffering` 控制 NGINX 是否对代理请求缓冲请求主体。 httpserverlocation proxy_send_lowat 'proxy_send_lowat' 指令指定代理模块发送缓冲区的低水位阈值,影响数据传输效率。 httpserverlocation proxy_send_timeout 在 NGINX 中设置向代理服务器传输请求的超时。 httpserverlocation proxy_set_body 将请求体设置为用于代理的指定值。 httpserverlocation proxy_set_header 指令 `proxy_set_header` 允许您修改发送到被代理服务器的请求头。 httpserverlocation proxy_socket_keepalive `proxy_socket_keepalive` 指令用于启用或禁用对代理服务器连接使用 keepalive。 httpserverlocation proxy_ssl_certificate `proxy_ssl_certificate` 指令为与被代理服务器的 SSL/TLS 连接设置客户端 SSL 证书文件。 httpserverlocation proxy_ssl_certificate_cache `proxy_ssl_certificate_cache` 指令配置了 NGINX 代理操作中 SSL 客户端证书的缓存行为。 httpserverlocation proxy_ssl_certificate_key 为代理 HTTPS 连接设置 SSL 证书私钥文件。 httpserverlocation proxy_ssl_ciphers 指令 `proxy_ssl_ciphers` 在 NGINX 中用于为被代理的 SSL 连接设置可接受的密码套件列表。 httpserverlocation proxy_ssl_conf_command `proxy_ssl_conf_command` 指令为 NGINX 中的代理连接指定与 SSL 相关的配置命令。 httpserverlocation proxy_ssl_crl 指令 `proxy_ssl_crl` 指定了用于在 SSL 代理连接中验证证书的证书撤销列表 (CRL) 文件。 httpserverlocation proxy_ssl_name proxy_ssl_name 指令指定代理请求的 SSL 主机名。 httpserverlocation proxy_ssl_password_file `proxy_ssl_password_file` 指令指定包含用于 SSL 客户端证书认证密码的文件路径。 httpserverlocation proxy_ssl_protocols proxy_ssl_protocols 指令指定在与被代理服务器建立安全连接时接受的 SSL/TLS 协议。 httpserverlocation proxy_ssl_server_name `proxy_ssl_server_name` 指令为被代理的请求启用 SNI,允许 NGINX 在 SSL 握手中发送服务器名称。 httpserverlocation proxy_ssl_session_reuse 指令 `proxy_ssl_session_reuse` 控制是否在被代理的连接之间重用 SSL 会话。 httpserverlocation proxy_ssl_trusted_certificate 该 `proxy_ssl_trusted_certificate` 指令指定一个文件,该文件包含用于验证与被代理服务器的 SSL 连接的受信任 CA 证书。 httpserverlocation proxy_ssl_verify 指令 `proxy_ssl_verify` 控制对代理连接的 SSL 证书验证。 httpserverlocation proxy_ssl_verify_depth 在代理过程中,`proxy_ssl_verify_depth` 指令设置 SSL 证书链的验证深度。 httpserverlocation proxy_store The `proxy_store` 指令允许将代理的响应存储在本地文件系统中。 httpserverlocation proxy_store_access `proxy_store_access` 指令在 NGINX 的代理设置中控制存储文件的访问权限。 httpserverlocation proxy_temp_file_write_size `proxy_temp_file_write_size` 指令设置在处理代理响应时写入临时文件的大小限制。 httpserverlocation proxy_temp_path 为 NGINX 的 proxy 模块设置临时文件的路径。 httpserverlocation quic_active_connection_id_limit 控制用于 QUIC 连接的活动连接 ID 的最大数量。 httpserver quic_gso 'quic_gso' 指令用于在 NGINX 中启用或禁用对 QUIC 连接使用 Generic Segmentation Offload。 httpserver quic_host_key 'quic_host_key' 指令指定在 NGINX 的 server 块中用于 QUIC 协议连接的密钥。 httpserver quic_retry `quic_retry` 指令在 NGINX 中启用或禁用 QUIC 连接重试行为。 httpserver random 'random' 指令指定在 upstream 区块中使用的负载均衡方法将随机选择一个服务器。 upstream random_index 'random_index' 指令使 NGINX 能够从指定目录以随机顺序提供文件。 location read_ahead `read_ahead` 指令设置从客户端连接预先读取的数据量以优化缓冲。 httpserverlocation real_ip_header real_ip_header 指令指定用于获取客户端真实 IP 地址的 HTTP 头的名称。 httpserverlocation real_ip_recursive `real_ip_recursive` 指令启用在 NGINX 中从受信任代理递归替换客户端 IP 地址。 httpserverlocation recursive_error_pages `recursive_error_pages` 指令控制错误页面是否递归处理。 httpserverlocation referer_hash_bucket_size 指令 `referer_hash_bucket_size` 用于设置在 NGINX 中存储 HTTP referer 头时使用的哈希桶大小。 serverlocation referer_hash_max_size 设置用于在 NGINX 中存储 referer 数据的哈希表的最大大小。 serverlocation request_pool_size `request_pool_size` 指令设置用于处理请求的内存池大小。 httpserver reset_timedout_connection 指令 `reset_timedout_connection` 允许 NGINX 重置已超时的连接以回收资源。 httpserverlocation resolver `resolver` 指令定义了用于解析域名的 DNS 服务器。 httpserverlocation resolver_timeout resolver_timeout 指令在 NGINX 中设置 DNS 解析的最大时间。 httpserverlocation return 指令 `return` 会立即向客户端返回指定的 HTTP 状态码或重定向响应。 serverlocationif in server rewrite `rewrite` 指令根据指定的模式和替换字符串修改请求的 URI。 serverlocationif in server rewrite_log rewrite_log 指令启用对请求重写处理详细信息的日志记录。 httpserverlocation root 'root' 指令指定 NGINX 在某个 location 或 server block 中所提供文件的根目录。 httpserverlocation satisfy 'satisfy' 指令控制基于多种访问控制方法授予资源访问权限的方式。 httpserverlocation scgi_bind `scgi_bind` 指令指定 SCGI 服务器用于监听连接的地址和端口。 httpserverlocation scgi_buffer_size 定义用于读取来自 SCGI 服务器响应第一部分的缓冲区大小。 httpserverlocation scgi_buffering 在 NGINX 中,'scgi_buffering' 指令用于启用或禁用来自 SCGI 服务器的响应缓冲。 httpserverlocation scgi_buffers `scgi_buffers` 指令设置用于 SCGI 响应的缓冲区数量和大小。 httpserverlocation scgi_busy_buffers_size 指令 `scgi_busy_buffers_size` 指定了在 NGINX 中用于存储正在处理的 SCGI 响应的缓冲区大小。 httpserverlocation scgi_cache 'scgi_cache' 指令在 NGINX 中启用对来自 SCGI 服务器的响应的缓存。 httpserverlocation scgi_cache_background_update `scgi_cache_background_update` 指令启用对 SCGI 响应的后台缓存更新。 httpserverlocation scgi_cache_bypass `scgi_cache_bypass` 指令控制何时根据指定条件绕过 SCGI 缓存。 httpserverlocation scgi_cache_key `scgi_cache_key` 指令设置 NGINX 中 SCGI 响应的缓存键。 httpserverlocation scgi_cache_lock 'scgi_cache_lock' 指令控制在对已缓存的 SCGI 响应的请求同时处理时是否应用锁。 httpserverlocation scgi_cache_lock_age 指令 `scgi_cache_lock_age` 控制请求对 SCGI 响应的缓存条目加锁的持续时间。 httpserverlocation scgi_cache_lock_timeout 设置在 NGINX SCGI 缓存中等待缓存响应锁的最长时间。 httpserverlocation scgi_cache_max_range_offset 配置用于 SCGI 缓存范围检索的最大偏移量。 httpserverlocation scgi_cache_methods `scgi_cache_methods` 指令指定在与 NGINX 配合使用 SCGI 协议时应被缓存的 HTTP 方法。 httpserverlocation scgi_cache_min_uses 设置 SCGI 请求在被缓存前必须被访问的最小次数。 httpserverlocation scgi_cache_path `scgi_cache_path` 指令定义了用于存储 SCGI 响应的位置,从而启用缓存以提高性能。 http scgi_cache_revalidate 指令 `scgi_cache_revalidate` 控制 NGINX 在将缓存的 SCGI 响应提供给客户端之前是否重新验证它们。 httpserverlocation scgi_cache_use_stale scgi_cache_use_stale 指令指定在特定情况下何时使用过期的 SCGI 缓存数据来响应客户端请求。 httpserverlocation scgi_cache_valid 'scgi_cache_valid' 指令定义了缓存的 SCGI 请求响应被视为有效的时间段。 httpserverlocation scgi_connect_timeout `scgi_connect_timeout` 指令设置在 NGINX 中与 SCGI 服务器建立连接的最长时间。 httpserverlocation scgi_force_ranges 指令 `scgi_force_ranges` 强制对 SCGI 响应使用范围请求,从而影响数据发送给客户端的方式。 httpserverlocation scgi_hide_header 指令 `scgi_hide_header` 指示 NGINX 在使用 SCGI 协议时,从发送给客户端的响应中排除特定的响应头。 httpserverlocation scgi_ignore_client_abort 指令 `scgi_ignore_client_abort` 控制 NGINX 在处理 SCGI 请求时是否忽略客户端中止事件。 httpserverlocation scgi_ignore_headers 指令 `scgi_ignore_headers` 允许你指定在发送给客户端的响应中应忽略来自 SCGI 服务器的哪些响应头。 httpserverlocation scgi_intercept_errors `scgi_intercept_errors` 指令使 NGINX 能够拦截由 SCGI 服务器生成的错误,从而允许自定义错误处理。 httpserverlocation scgi_limit_rate scgi_limit_rate 指令限制外发 SCGI 响应的速率。 httpserverlocation scgi_max_temp_file_size 指令 `scgi_max_temp_file_size` 限制为 SCGI 请求创建的临时文件的最大大小。 httpserverlocation scgi_next_upstream `scgi_next_upstream` 指令控制在使用 SCGI 时哪些错误条件会触发将请求重试到下一个上游服务器。 httpserverlocation scgi_next_upstream_timeout 指令 'scgi_next_upstream_timeout' 定义了在当前服务器未能响应时,等待上游组中下一个 SCGI 服务器响应的时间间隔。 httpserverlocation scgi_next_upstream_tries The 'scgi_next_upstream_tries' 指令指定在 SCGI 服务通信失败时尝试连接下一个上游服务器的次数。 httpserverlocation scgi_no_cache 指令 `scgi_no_cache` 控制 SCGI 响应的服务器缓存行为。 httpserverlocation scgi_param `scgi_param` 指令为发往 SCGI 服务器的请求设置 SCGI 参数。 httpserverlocation scgi_pass `scgi_pass` 指令将请求转发到 SCGI 服务器。 locationif in location scgi_pass_header `scgi_pass_header` 指令允许您指定应当在响应中从 SCGI 服务器传递给客户端的头部。 httpserverlocation scgi_pass_request_body scgi_pass_request_body 指令在使用 SCGI 代理时控制是否将请求主体发送到 SCGI 服务器。 httpserverlocation scgi_pass_request_headers 'scgi_pass_request_headers' 指令控制 NGINX 是否将 SCGI 请求头转发到后端。 httpserverlocation scgi_read_timeout 设置从 SCGI 服务器读取响应的超时时间。 httpserverlocation scgi_request_buffering `scgi_request_buffering` 指令控制 NGINX 中 SCGI 请求的缓冲。 httpserverlocation scgi_send_timeout 指令 'scgi_send_timeout' 设置 NGINX 在向 SCGI 服务器发送请求时的最大等待时间。 httpserverlocation scgi_socket_keepalive 'scgi_socket_keepalive' 指令启用或禁用 SCGI 连接的 keep-alive 支持。 httpserverlocation scgi_store `scgi_store` 指令确定将 SCGI 请求的响应主体存放的位置。 httpserverlocation scgi_store_access scgi_store_access 指令允许您为在 SCGI 响应中存储文件指定访问控制规则。 httpserverlocation scgi_temp_file_write_size 设置在 SCGI(Scripting Common Gateway Interface)请求期间创建的临时文件的大小上限。 httpserverlocation scgi_temp_path `scgi_temp_path` 指令设置 SCGI(简单通用网关接口)请求的临时存储路径,从而允许对 SCGI 数据进行专门处理。 httpserverlocation secure_link 'secure_link' 指令用于保护资源,要求访问时提供有效的安全链接。 httpserverlocation secure_link_md5 指令 `secure_link_md5` 生成并验证用于文件安全链接的 MD5 哈希。 httpserverlocation secure_link_secret `secure_link_secret` 指令定义了一个用于在 NGINX 中验证安全链接的共享密钥。 httpserverlocation send_lowat `send_lowat` 指令控制 NGINX 中 TCP 发送缓冲区的低水位标记。 httpserverlocation send_timeout 指令 `send_timeout` 设置向客户端传输响应的超时时间。 httpserverlocation sendfile 指令 `sendfile` 用于启用或禁用在响应客户端请求时使用 `sendfile()` 系统调用来传输文件。 httpserverlocation sendfile_max_chunk sendfile_max_chunk 指令在 NGINX 中设置使用 sendfile 系统调用发送数据的最大大小。 httpserverlocation server 在 NGINX 配置中,`server` 指令定义了一个虚拟服务器块。 http server_name 'server_name' 指令定义了 NGINX 中 server 块所负责的域名。 server server_name_in_redirect server_name_in_redirect 指令控制在重定向中是否包含服务器名称。 httpserverlocation server_names_hash_bucket_size 设置用于存储服务器名称的哈希桶大小。 http server_names_hash_max_size 'server_names_hash_max_size' 指令设置用于在 NGINX 中存储服务器名称的哈希表的最大大小。 http server_tokens 'server_tokens' 指令用于控制 NGINX 是否在 HTTP 响应头中包含服务器版本。 httpserverlocation set 'set' 指令在 NGINX 配置上下文中为变量赋值。 serverlocationif in server set_real_ip_from 'set_real_ip_from' 指令指定了受信任的地址,NGINX 会从这些地址接受客户端的真实 IP。 httpserverlocation slice NGINX 中的 `slice` 指令使请求被切分以在特定块中处理。 httpserverlocation source_charset The `source_charset` 指令指定 NGINX 服务器用于解释源内容的字符集。 httpserverlocation split_clients `split_clients` 指令允许 NGINX 根据指定的百分比将客户端划分为不同的组,并对每个组执行不同的操作。 http ssi 'ssi' 指令在指定的上下文中启用或禁用服务器端包含(SSI)功能。 httpserverlocation ssi_ignore_recycled_buffers 指令 `ssi_ignore_recycled_buffers` 控制在 SSI 处理期间是否忽略回收的缓冲区。 httpserverlocation ssi_last_modified ssi_last_modified 指令用于启用或禁用为由服务器端包含 (SSI) 处理的文件生成 Last-Modified 响应头。 httpserverlocation ssi_min_file_chunk 指令`ssi_min_file_chunk`指定在服务器端包含 (SSI) 实例中要处理的文件块的最小大小。 httpserverlocation ssi_silent_errors 'ssi_silent_errors' 指令用于在 NGINX 中启用或禁用对由 SSI 命令生成的错误消息的抑制。 httpserverlocation ssi_types NGINX 中的 'ssi_types' 指令指定应为服务器端包含 (SSI) 处理的文件的媒体类型。 httpserverlocation ssi_value_length ssi_value_length 指令设置 SSI 变量值的最大字节数。 httpserverlocation ssl_buffer_size `ssl_buffer_size` 指令设置用于读取 SSL 数据的缓冲区大小。 httpserver ssl_certificate ssl_certificate 指令指定在 NGINX 的 HTTPS 服务器配置中 SSL 证书文件的路径。 httpserver ssl_certificate_cache ssl_certificate_cache 指令指定了 NGINX 中 SSL 证书的缓存设置。 httpserver ssl_certificate_compression ssl_certificate_compression 指令确定是否启用或禁用 SSL/TLS 证书压缩。 httpserver ssl_certificate_key ssl_certificate_key 指令指定在 NGINX 中用于 SSL/TLS 加密的私钥文件。 httpserver ssl_ciphers 为 NGINX 中的 SSL/TLS 连接设置要使用的密码套件列表。 httpserver ssl_client_certificate ssl_client_certificate 指令指定包含用于客户端证书验证的受信任 CA 证书的文件。 httpserver ssl_conf_command ssl_conf_command 指令允许为 NGINX 指定与 SSL 相关的配置。 httpserver ssl_crl 指令 `ssl_crl` 指定用于检查被撤销 SSL 证书的证书撤销列表(CRL)文件。 httpserver ssl_dhparam 指定用于 SSL/TLS 连接中 Diffie-Hellman 密钥交换的 DH 参数。 httpserver ssl_early_data 在 NGINX 中,`ssl_early_data` 指令用于启用或禁用 TLS 早期数据的使用。 httpserver ssl_ecdh_curve 在 SSL/TLS 会话中为 ECDH (Elliptic Curve Diffie-Hellman) 密钥交换设置曲线。 httpserver ssl_ech_file 配置包含 ECH (Encrypted Client Hello) 配置数据的文件路径。 httpserver ssl_ocsp 指令 `ssl_ocsp` 在 NGINX 中用于启用或禁用针对 SSL/TLS 连接的在线证书状态协议 (OCSP) 检查。 httpserver ssl_ocsp_cache `ssl_ocsp_cache` 指令在 NGINX 中配置 OCSP(在线证书状态协议)响应的缓存行为。 httpserver ssl_ocsp_responder ssl_ocsp_responder 指令指定用于 SSL 证书撤销检查的 OCSP 响应者 URL。 httpserver ssl_password_file 指令 `ssl_password_file` 设置包含 SSL 证书私钥密码的文件路径。 httpserver ssl_prefer_server_ciphers `ssl_prefer_server_ciphers` 指令控制在 SSL/TLS 连接中使用的加密套件的优先级。 httpserver ssl_protocols 'ssl_protocols' 指令指定允许 NGINX 使用的 SSL/TLS 协议。 httpserver ssl_reject_handshake `ssl_reject_handshake` 指令用于根据配置中定义的条件控制是否拒绝 SSL 握手。 httpserver ssl_session_cache 指令 `ssl_session_cache` 为 SSL 会话参数设置缓存,以加快 SSL 握手。 httpserver ssl_session_ticket_key ssl_session_ticket_key 指令为 NGINX 中的 SSL 会话恢复设置会话票据密钥。 httpserver ssl_session_tickets 指令 `ssl_session_tickets` 控制在 NGINX 中启用或禁用 SSL 会话票据支持。 httpserver ssl_session_timeout `ssl_session_timeout` 指令在 NGINX 中设置 SSL 会话缓存的超时时间。 httpserver ssl_stapling ssl_stapling 指令在 NGINX 中用于启用或禁用 OCSP (Online Certificate Status Protocol)… httpserver ssl_stapling_file 指令 `ssl_stapling_file` 指定用于 SSL stapling 的 OCSP 响应文件名。 httpserver ssl_stapling_responder 'ssl_stapling_responder' 指令配置用于检索 OCSP(在线证书状态协议)stapling 响应的 URL。 httpserver ssl_stapling_verify The `ssl_stapling_verify` 指令启用对 OCSP (Online Certificate Status Protocol)… httpserver ssl_trusted_certificate 'ssl_trusted_certificate' 指令指定一个或多个受信任的 CA 证书,用于在 SSL/TLS 场景中验证客户端证书。 httpserver ssl_verify_client `ssl_verify_client` 指令配置 NGINX 是否应请求并验证客户端的 SSL 证书。 httpserver ssl_verify_depth ssl_verify_depth 指令指定在 SSL/TLS 客户端认证期间被信任的 CA 证书链的最大深度。 httpserver stub_status 'stub_status' 指令可为 NGINX 启用一个简单的状态监控页面。 serverlocation sub_filter sub_filter 指令用于通过将特定字符串替换为其他字符串来修改响应体。 httpserverlocation sub_filter_last_modified sub_filter_last_modified 指令允许控制被代理响应的 Last-Modified 头部。 httpserverlocation sub_filter_once `sub_filter_once` 指令控制是否在每个响应中仅应用一次替换,还是在每次找到指定子字符串时都应用替换。 httpserverlocation sub_filter_types 'sub_filter_types' 指令配置将在 NGINX 中对响应体进行替换的内容类型。 httpserverlocation subrequest_output_buffer_size 设置 NGINX 中子请求输出缓冲区的大小。 httpserverlocation tcp_nodelay tcp_nodelay 指令禁用 Nagle's algorithm 对 TCP 连接的处理,从而允许低延迟通信。 httpserverlocation tcp_nopush tcp_nopush 指令控制 NGINX 是否在 Linux 上使用 TCP_CORK 套接字选项发送数据。 httpserverlocation try_files 该 `try_files` 指令尝试从指定路径提供文件,如果未找到文件则回退到指定的 URI。 serverlocation types NGINX 中的 'types' 指令根据文件扩展名定义 MIME 类型。 httpserverlocation types_hash_bucket_size 'types_hash_bucket_size' 指令在 NGINX 中设置 MIME 类型哈希表的哈希桶大小。 httpserverlocation types_hash_max_size 设置 NGINX 中用于 MIME 类型处理的哈希表的最大大小。 httpserverlocation underscores_in_headers `underscores_in_headers` 指令允许在 HTTP 头部名称中使用下划线。 httpserver uninitialized_variable_warn 'uninitialized_variable_warn' 指令控制 NGINX 配置中对未初始化变量的警告。 httpserverlocation upstream `upstream` 指令定义了一组用于负载均衡的后端服务器。 http userid NGINX 中的 'userid' 指令用于为处理请求的工作进程设置用户 ID。 httpserverlocation userid_domain `userid_domain` 指令为 NGINX 中的 `userid` 功能设置域,使会话 ID 能够绑定到特定域。 httpserverlocation userid_expires 设置用户 ID cookie 的有效期限。 httpserverlocation userid_flags `userid_flags` 指令指定在 HTTP 请求上下文中定义用户 ID 的标志。 httpserverlocation userid_mark 'userid_mark' 指令用于在 NGINX 中设置用于用户跟踪的唯一标识符。 httpserverlocation userid_name `userid_name` 指令指定要在 HTTP 响应头中返回的用户名。 httpserverlocation userid_p3p `userid_p3p` 指令设置 P3P(隐私偏好平台)策略,以允许通过 cookies 识别用户。 httpserverlocation userid_path `userid_path` 指令设置用于存储由身份验证系统生成的用户 ID (UIDs) 的路径。 httpserverlocation userid_service The `userid_service` directive allows specifying a service for user ID mapping… httpserverlocation uwsgi_bind `uwsgi_bind` 指令设置 NGINX 用于与 uWSGI 服务器通信的地址和端口。 httpserverlocation uwsgi_buffer_size 指令 `uwsgi_buffer_size` 设置用于从 uWSGI 服务器读取响应第一部分的缓冲区大小。 httpserverlocation uwsgi_buffering 指令 `uwsgi_buffering` 控制 NGINX 是否对来自 uWSGI 应用的响应进行缓冲。 httpserverlocation uwsgi_buffers `uwsgi_buffers` 指令设置用于从 uWSGI 服务器读取响应时使用的缓冲区的数量和大小。 httpserverlocation uwsgi_busy_buffers_size 设置用于在 NGINX 中存储来自 uWSGI 服务器的响应数据的缓冲区大小。 httpserverlocation uwsgi_cache uwsgi_cache 指令为来自 uWSGI 的响应指定了一个共享缓存。 httpserverlocation uwsgi_cache_background_update `uwsgi_cache_background_update` 指令控制在请求未命中缓存时,是否在后台更新缓存(用于 NGINX 的 uWSGI 缓存机制)。 httpserverlocation uwsgi_cache_bypass uwsgi_cache_bypass 指令控制在何种条件下跳过对 uWSGI 响应的缓存。 httpserverlocation uwsgi_cache_key `uwsgi_cache_key` 指令在使用 uWSGI 缓存时为 NGINX 中的缓存设置键。 httpserverlocation uwsgi_cache_lock `uwsgi_cache_lock` 指令用于在 NGINX 中使用 uWSGI 缓存机制时启用或禁用缓存锁定。 httpserverlocation uwsgi_cache_lock_age 在启用 uWSGI 缓存的 NGINX 中,`uwsgi_cache_lock_age` 指令设置在处理请求时等待缓存锁的时间。 httpserverlocation uwsgi_cache_lock_timeout 设置 uWSGI 缓存操作期间缓存锁的超时时间。 httpserverlocation uwsgi_cache_max_range_offset 设置 uWSGI 缓存中范围请求的最大字节偏移量。 httpserverlocation uwsgi_cache_methods uwsgi_cache_methods 指令设置 uWSGI 缓存应缓存哪些 HTTP 方法。 httpserverlocation uwsgi_cache_min_uses 指令 `uwsgi_cache_min_uses` 指定某个请求在被缓存之前必须被发起的最少次数。 httpserverlocation uwsgi_cache_path `uwsgi_cache_path` 指令用于在 NGINX 中设置用于缓存 uWSGI 响应的缓存路径。 http uwsgi_cache_revalidate 指令 `uwsgi_cache_revalidate` 控制在向客户端提供缓存响应之前,NGINX 是否向 uWSGI 服务器重新验证这些缓存响应。 httpserverlocation uwsgi_cache_use_stale `uwsgi_cache_use_stale` 指令允许 NGINX 在遇到特定错误或条件时返回过期的缓存响应。 httpserverlocation uwsgi_cache_valid 在 NGINX 的 UWSGI 缓存中,根据 HTTP 状态码设置响应的缓存时长。 httpserverlocation uwsgi_connect_timeout 设置在 NGINX 中连接到 uWSGI 服务器的超时时间。 httpserverlocation uwsgi_force_ranges 当设置为 'on' 时,`uwsgi_force_ranges` 指令使服务器在处理 uWSGI 应用的范围请求时返回完整响应。 httpserverlocation uwsgi_hide_header `uwsgi_hide_header` 指令会移除从 uWSGI 响应返回的特定响应头。 httpserverlocation uwsgi_ignore_client_abort 'uwsgi_ignore_client_abort' 指令控制 uWSGI 响应期间对客户端断开连接的处理。 httpserverlocation uwsgi_ignore_headers uwsgi_ignore_headers 指令控制 NGINX 忽略来自 uWSGI 响应的哪些头部。 httpserverlocation uwsgi_intercept_errors `uwsgi_intercept_errors` 指令控制 NGINX 是否拦截 uWSGI 应用返回的错误。 httpserverlocation uwsgi_limit_rate 指令 `uwsgi_limit_rate` 限制发送到 uWSGI 服务器的数据速率。 httpserverlocation uwsgi_max_temp_file_size 设置处理 uWSGI 请求时临时文件的最大大小。 httpserverlocation uwsgi_modifier1 'uwsgi_modifier1' 指令在 NGINX 中为 uWSGI 请求设置一个修饰符。 httpserverlocation uwsgi_modifier2 `uwsgi_modifier2` 指令修改 NGINX 中 uWSGI 协议响应的行为。 httpserverlocation uwsgi_next_upstream `uwsgi_next_upstream` 指令指定了在当前服务器发生故障时,NGINX 服务器尝试将请求传递给组中下一个服务器的条件。 httpserverlocation uwsgi_next_upstream_timeout 在 uWSGI 环境中,当先前的请求失败时,'uwsgi_next_upstream_timeout' 指令为下一次上游请求设置超时时间。 httpserverlocation uwsgi_next_upstream_tries 'uwsgi_next_upstream_tries' 指令定义了在 uWSGI 模式下与原始上游服务器通信发生错误时 NGINX 将尝试连接的上游服务器数量。 httpserverlocation uwsgi_no_cache `uwsgi_no_cache` 指令指定了在何种条件下来自 uWSGI 服务器的响应不应被缓存。 httpserverlocation uwsgi_param `uwsgi_param` 指令定义要传递给 uWSGI 服务器的参数。 httpserverlocation uwsgi_pass `uwsgi_pass` 指令将请求转发到 uWSGI 应用服务器。 locationif in location uwsgi_pass_header `uwsgi_pass_header` 指令用于指定从 uWSGI 应用传递到客户端响应的头部。 httpserverlocation uwsgi_pass_request_body uwsgi_pass_request_body 指令控制是否将请求主体与请求头一起传递给 uWSGI 服务器。 httpserverlocation uwsgi_pass_request_headers 'uwsgi_pass_request_headers' 指令控制将请求头传递到 uWSGI 服务器。 httpserverlocation uwsgi_read_timeout 在 NGINX 中设置从 uWSGI 服务器读取响应的超时时间。 httpserverlocation uwsgi_request_buffering 'uwsgi_request_buffering' 指令用于控制在处理 uWSGI 请求时是否对请求体进行缓冲。 httpserverlocation uwsgi_send_timeout 为从 uWSGI 对端读取响应设置超时。 httpserverlocation uwsgi_socket_keepalive `uwsgi_socket_keepalive` 指令用于在 uWSGI 套接字连接上启用或禁用套接字保活,以提高可靠性。 httpserverlocation uwsgi_ssl_certificate 指令 `uwsgi_ssl_certificate` 指定 NGINX 中 uWSGI 连接使用的 SSL 证书。 httpserverlocation uwsgi_ssl_certificate_cache 在 NGINX 中,'uwsgi_ssl_certificate_cache' 指令设置使用 uWSGI 服务器协议时的 SSL 证书缓存行为,通过减少… httpserverlocation uwsgi_ssl_certificate_key 为 uWSGI 使用的 SSL 证书配置私钥。 httpserverlocation uwsgi_ssl_ciphers uwsgi_ssl_ciphers 指令设置与 uWSGI 服务器建立 SSL 连接时使用的密码套件列表。 httpserverlocation uwsgi_ssl_conf_command `uwsgi_ssl_conf_command` 指令为在 NGINX 中的 uWSGI 连接指定 SSL 配置命令。 httpserverlocation uwsgi_ssl_crl 'uwsgi_ssl_crl' 指令指定在 NGINX 中用于 uWSGI SSL 连接的证书撤销列表 (CRL) 文件。 httpserverlocation uwsgi_ssl_name `uwsgi_ssl_name` 指令指定在与 uWSGI 服务器建立 SSL 连接时要使用的主机名。 httpserverlocation uwsgi_ssl_password_file 指定包含用于 uWSGI 后端连接的 SSL 密码的文件路径。 httpserverlocation uwsgi_ssl_protocols `uwsgi_ssl_protocols` 指令指定 NGINX 与上游 uWSGI 服务器之间通信使用的 SSL 协议。 httpserverlocation uwsgi_ssl_server_name `uwsgi_ssl_server_name` 指令指定是否在通过 SSL 与 uWSGI 服务器通信时发送服务器名。 httpserverlocation uwsgi_ssl_session_reuse uwsgi_ssl_session_reuse 指令在 NGINX 中控制针对 uWSGI 请求的 SSL 会话重用。 httpserverlocation uwsgi_ssl_trusted_certificate 指令 'uwsgi_ssl_trusted_certificate' 指定用于验证来自 uWSGI 服务器的 SSL 连接的受信任 CA 证书文件。 httpserverlocation uwsgi_ssl_verify 指令 `uwsgi_ssl_verify` 在 NGINX 中配置 uWSGI 请求的 SSL 证书验证。 httpserverlocation uwsgi_ssl_verify_depth 指令 `uwsgi_ssl_verify_depth` 为 uWSGI 通信中的 SSL 证书设置验证深度。 httpserverlocation uwsgi_store `uwsgi_store` 指令启用将来自 uWSGI 服务器的响应存储到指定文件中。 httpserverlocation uwsgi_store_access `uwsgi_store_access` 指令为 uWSGI 应用在服务器端缓存的响应配置访问控制。 httpserverlocation uwsgi_string `uwsgi_string` 指令允许您定义要发送到 uWSGI 应用服务器的特定字符串。 httpserverlocation uwsgi_temp_file_write_size 设置用于缓冲 uWSGI 响应的临时文件大小。 httpserverlocation uwsgi_temp_path 指令 `uwsgi_temp_path` 设置由 NGINX 中的 uWSGI 模块使用的临时文件路径。 httpserverlocation valid_referers `valid_referers` 指令定义了一个允许的 referer URL 列表,用于传入请求。 serverlocation variables_hash_bucket_size 'variables_hash_bucket_size' 指令设置用于存储 NGINX 变量的哈希桶大小。 http variables_hash_max_size 'variables_hash_max_size' 指令设置用于存储 NGINX 变量的哈希表的最大大小。 http xml_entities The 'xml_entities' 指令用于在 NGINX 响应中启用或禁用对 XML 实体的编码。 httpserverlocation xslt_last_modified `xslt_last_modified` 指令允许服务器对通过 XSLT 处理的 XML 文档以最后修改时间戳作出响应。 httpserverlocation xslt_param `xslt_param` 指令允许用户为 NGINX 中的 XSLT 转换定义参数。 httpserverlocation xslt_string_param The `xslt_string_param` 指令允许您在 NGINX 配置中为 XSLT 处理定义参数。 httpserverlocation xslt_stylesheet The `xslt_stylesheet` 指令指定要在 NGINX 中应用于 XML 响应的 XSLT 样式表。 location xslt_types xslt_types 指令在 NGINX 中为 XSLT 响应定义 MIME 类型。 httpserverlocation zone 'zone' 指令在 NGINX 中定义了用于会话状态数据的共享内存区域。 upstream