optimize $http_x_forwarded_for
This commit is contained in:
parent
51d33405d7
commit
c7d977cfec
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ static ngx_http_variable_t ngx_http_core_variables[] = {
|
|||
offsetof(ngx_http_request_t, headers_in.via), 0, 0 },
|
||||
#endif
|
||||
|
||||
#if (NGX_HTTP_PROXY)
|
||||
#if (NGX_HTTP_PROXY || NGX_HTTP_REALIP)
|
||||
{ ngx_string("http_x_forwarded_for"), NULL, ngx_http_variable_header,
|
||||
offsetof(ngx_http_request_t, headers_in.x_forwarded_for), 0, 0 },
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue