comparison src/http/ngx_http_upstream.c @ 3898:bd1222fb0192

allow to use $upstream_... variables in SSI
author Igor Sysoev <igor@sysoev.ru>
date Thu, 21 Apr 2011 10:07:07 +0000
parents 502a6b0acf3f
children 2a70484a6580
comparison
equal deleted inserted replaced
3897:1df827cf70c0 3898:bd1222fb0192
311 311
312 static ngx_http_variable_t ngx_http_upstream_vars[] = { 312 static ngx_http_variable_t ngx_http_upstream_vars[] = {
313 313
314 { ngx_string("upstream_addr"), NULL, 314 { ngx_string("upstream_addr"), NULL,
315 ngx_http_upstream_addr_variable, 0, 315 ngx_http_upstream_addr_variable, 0,
316 NGX_HTTP_VAR_NOHASH|NGX_HTTP_VAR_NOCACHEABLE, 0 }, 316 NGX_HTTP_VAR_NOCACHEABLE, 0 },
317 317
318 { ngx_string("upstream_status"), NULL, 318 { ngx_string("upstream_status"), NULL,
319 ngx_http_upstream_status_variable, 0, 319 ngx_http_upstream_status_variable, 0,
320 NGX_HTTP_VAR_NOHASH|NGX_HTTP_VAR_NOCACHEABLE, 0 }, 320 NGX_HTTP_VAR_NOCACHEABLE, 0 },
321 321
322 { ngx_string("upstream_response_time"), NULL, 322 { ngx_string("upstream_response_time"), NULL,
323 ngx_http_upstream_response_time_variable, 0, 323 ngx_http_upstream_response_time_variable, 0,
324 NGX_HTTP_VAR_NOHASH|NGX_HTTP_VAR_NOCACHEABLE, 0 }, 324 NGX_HTTP_VAR_NOCACHEABLE, 0 },
325 325
326 { ngx_string("upstream_response_length"), NULL, 326 { ngx_string("upstream_response_length"), NULL,
327 ngx_http_upstream_response_length_variable, 0, 327 ngx_http_upstream_response_length_variable, 0,
328 NGX_HTTP_VAR_NOHASH|NGX_HTTP_VAR_NOCACHEABLE, 0 }, 328 NGX_HTTP_VAR_NOCACHEABLE, 0 },
329 329
330 #if (NGX_HTTP_CACHE) 330 #if (NGX_HTTP_CACHE)
331 331
332 { ngx_string("upstream_cache_status"), NULL, 332 { ngx_string("upstream_cache_status"), NULL,
333 ngx_http_upstream_cache_status, 0, 333 ngx_http_upstream_cache_status, 0,
334 NGX_HTTP_VAR_NOHASH|NGX_HTTP_VAR_NOCACHEABLE, 0 }, 334 NGX_HTTP_VAR_NOCACHEABLE, 0 },
335 335
336 #endif 336 #endif
337 337
338 { ngx_null_string, NULL, NULL, 0, 0, 0 } 338 { ngx_null_string, NULL, NULL, 0, 0, 0 }
339 }; 339 };