mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
allow to use $upstream_... variables in SSI
This commit is contained in:
parent
423ee58e76
commit
64efecc2b5
@ -313,25 +313,25 @@ static ngx_http_variable_t ngx_http_upstream_vars[] = {
|
|||||||
|
|
||||||
{ ngx_string("upstream_addr"), NULL,
|
{ ngx_string("upstream_addr"), NULL,
|
||||||
ngx_http_upstream_addr_variable, 0,
|
ngx_http_upstream_addr_variable, 0,
|
||||||
NGX_HTTP_VAR_NOHASH|NGX_HTTP_VAR_NOCACHEABLE, 0 },
|
NGX_HTTP_VAR_NOCACHEABLE, 0 },
|
||||||
|
|
||||||
{ ngx_string("upstream_status"), NULL,
|
{ ngx_string("upstream_status"), NULL,
|
||||||
ngx_http_upstream_status_variable, 0,
|
ngx_http_upstream_status_variable, 0,
|
||||||
NGX_HTTP_VAR_NOHASH|NGX_HTTP_VAR_NOCACHEABLE, 0 },
|
NGX_HTTP_VAR_NOCACHEABLE, 0 },
|
||||||
|
|
||||||
{ ngx_string("upstream_response_time"), NULL,
|
{ ngx_string("upstream_response_time"), NULL,
|
||||||
ngx_http_upstream_response_time_variable, 0,
|
ngx_http_upstream_response_time_variable, 0,
|
||||||
NGX_HTTP_VAR_NOHASH|NGX_HTTP_VAR_NOCACHEABLE, 0 },
|
NGX_HTTP_VAR_NOCACHEABLE, 0 },
|
||||||
|
|
||||||
{ ngx_string("upstream_response_length"), NULL,
|
{ ngx_string("upstream_response_length"), NULL,
|
||||||
ngx_http_upstream_response_length_variable, 0,
|
ngx_http_upstream_response_length_variable, 0,
|
||||||
NGX_HTTP_VAR_NOHASH|NGX_HTTP_VAR_NOCACHEABLE, 0 },
|
NGX_HTTP_VAR_NOCACHEABLE, 0 },
|
||||||
|
|
||||||
#if (NGX_HTTP_CACHE)
|
#if (NGX_HTTP_CACHE)
|
||||||
|
|
||||||
{ ngx_string("upstream_cache_status"), NULL,
|
{ ngx_string("upstream_cache_status"), NULL,
|
||||||
ngx_http_upstream_cache_status, 0,
|
ngx_http_upstream_cache_status, 0,
|
||||||
NGX_HTTP_VAR_NOHASH|NGX_HTTP_VAR_NOCACHEABLE, 0 },
|
NGX_HTTP_VAR_NOCACHEABLE, 0 },
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user