Mercurial > hg > nginx
comparison src/http/modules/ngx_http_fastcgi_module.c @ 2592:3a8a53c0c42f
a prelimiary proxy cache support
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 23 Mar 2009 13:14:51 +0000 |
parents | 84f2bef92007 |
children | 4ed2fa197a4a |
comparison
equal
deleted
inserted
replaced
2591:7162ac8d564f | 2592:3a8a53c0c42f |
---|---|
286 { ngx_string("fastcgi_temp_path"), | 286 { ngx_string("fastcgi_temp_path"), |
287 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1234, | 287 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1234, |
288 ngx_conf_set_path_slot, | 288 ngx_conf_set_path_slot, |
289 NGX_HTTP_LOC_CONF_OFFSET, | 289 NGX_HTTP_LOC_CONF_OFFSET, |
290 offsetof(ngx_http_fastcgi_loc_conf_t, upstream.temp_path), | 290 offsetof(ngx_http_fastcgi_loc_conf_t, upstream.temp_path), |
291 (void *) ngx_garbage_collector_temp_handler }, | 291 NULL }, |
292 | 292 |
293 { ngx_string("fastcgi_max_temp_file_size"), | 293 { ngx_string("fastcgi_max_temp_file_size"), |
294 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, | 294 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, |
295 ngx_conf_set_size_slot, | 295 ngx_conf_set_size_slot, |
296 NGX_HTTP_LOC_CONF_OFFSET, | 296 NGX_HTTP_LOC_CONF_OFFSET, |
431 ngx_string("X-Accel-Redirect"), | 431 ngx_string("X-Accel-Redirect"), |
432 ngx_string("X-Accel-Limit-Rate"), | 432 ngx_string("X-Accel-Limit-Rate"), |
433 ngx_string("X-Accel-Buffering"), | 433 ngx_string("X-Accel-Buffering"), |
434 ngx_string("X-Accel-Charset"), | 434 ngx_string("X-Accel-Charset"), |
435 ngx_null_string | 435 ngx_null_string |
436 }; | |
437 | |
438 | |
439 static ngx_path_init_t ngx_http_fastcgi_temp_path = { | |
440 ngx_string(NGX_HTTP_FASTCGI_TEMP_PATH), { 1, 2, 0 } | |
436 }; | 441 }; |
437 | 442 |
438 | 443 |
439 static ngx_int_t | 444 static ngx_int_t |
440 ngx_http_fastcgi_handler(ngx_http_request_t *r) | 445 ngx_http_fastcgi_handler(ngx_http_request_t *r) |
1921 if (conf->upstream.next_upstream & NGX_HTTP_UPSTREAM_FT_OFF) { | 1926 if (conf->upstream.next_upstream & NGX_HTTP_UPSTREAM_FT_OFF) { |
1922 conf->upstream.next_upstream = NGX_CONF_BITMASK_SET | 1927 conf->upstream.next_upstream = NGX_CONF_BITMASK_SET |
1923 |NGX_HTTP_UPSTREAM_FT_OFF; | 1928 |NGX_HTTP_UPSTREAM_FT_OFF; |
1924 } | 1929 } |
1925 | 1930 |
1926 ngx_conf_merge_path_value(conf->upstream.temp_path, | 1931 if (ngx_conf_merge_path_value(cf, &conf->upstream.temp_path, |
1927 prev->upstream.temp_path, | 1932 prev->upstream.temp_path, |
1928 NGX_HTTP_FASTCGI_TEMP_PATH, 1, 2, 0, | 1933 &ngx_http_fastcgi_temp_path) |
1929 ngx_garbage_collector_temp_handler, cf); | 1934 != NGX_OK) |
1935 { | |
1936 return NGX_CONF_ERROR; | |
1937 } | |
1930 | 1938 |
1931 ngx_conf_merge_value(conf->upstream.pass_request_headers, | 1939 ngx_conf_merge_value(conf->upstream.pass_request_headers, |
1932 prev->upstream.pass_request_headers, 1); | 1940 prev->upstream.pass_request_headers, 1); |
1933 ngx_conf_merge_value(conf->upstream.pass_request_body, | 1941 ngx_conf_merge_value(conf->upstream.pass_request_body, |
1934 prev->upstream.pass_request_body, 1); | 1942 prev->upstream.pass_request_body, 1); |