diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2024-05-24 00:20:01 +0300 |
|---|---|---|
| committer | Sergey Kandaurov <s.kandaurov@f5.com> | 2026-04-06 14:08:36 +0400 |
| commit | 365694160a85229a7cb006738de9260d49ff5fa2 (patch) | |
| tree | e8cfd92127d6adbe6c644afba6d80e1b58bdc801 /src/http/ngx_http_core_module.h | |
| parent | 06c30ec29d392af00157c0b0eecbc545b330e50f (diff) | |
| download | nginx-365694160a85229a7cb006738de9260d49ff5fa2.tar.gz nginx-365694160a85229a7cb006738de9260d49ff5fa2.tar.bz2 | |
Added max_headers directive.
The directive limits the number of request headers accepted from clients.
While the total amount of headers is believed to be sufficiently limited
by the existing buffer size limits (client_header_buffer_size and
large_client_header_buffers), the additional limit on the number of headers
might be beneficial to better protect backend servers.
Requested by Maksim Yevmenkin.
Signed-off-by: Elijah Zupancic <e.zupancic@f5.com>
Origin: <https://freenginx.org/hg/nginx/rev/199dc0d6b05be814b5c811876c20af58cd361fea>
Diffstat (limited to 'src/http/ngx_http_core_module.h')
| -rw-r--r-- | src/http/ngx_http_core_module.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index 6062d3a23..a13d7ade5 100644 --- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h @@ -199,6 +199,8 @@ typedef struct { ngx_msec_t client_header_timeout; + ngx_uint_t max_headers; + ngx_flag_t ignore_invalid_headers; ngx_flag_t merge_slashes; ngx_flag_t underscores_in_headers; |
