Mercurial > hg > nginx
comparison src/http/modules/ngx_http_fastcgi_module.c @ 3731:72cc5b789021
inherit proxy_pass, fastcgi_pass, uwsgi_pass, scgi_pass inside
a limit_except block if no handler was defined for the block
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 03 Aug 2010 09:24:25 +0000 |
parents | 4b773fc06336 |
children | 1ba712d077d1 |
comparison
equal
deleted
inserted
replaced
3730:d094e237abf4 | 3731:72cc5b789021 |
---|---|
2023 ngx_uint_t i; | 2023 ngx_uint_t i; |
2024 ngx_array_t headers_names; | 2024 ngx_array_t headers_names; |
2025 ngx_keyval_t *src; | 2025 ngx_keyval_t *src; |
2026 ngx_hash_key_t *hk; | 2026 ngx_hash_key_t *hk; |
2027 ngx_hash_init_t hash; | 2027 ngx_hash_init_t hash; |
2028 ngx_http_core_loc_conf_t *clcf; | |
2028 ngx_http_script_compile_t sc; | 2029 ngx_http_script_compile_t sc; |
2029 ngx_http_script_copy_code_t *copy; | 2030 ngx_http_script_copy_code_t *copy; |
2030 | 2031 |
2031 if (conf->upstream.store != 0) { | 2032 if (conf->upstream.store != 0) { |
2032 ngx_conf_merge_value(conf->upstream.store, | 2033 ngx_conf_merge_value(conf->upstream.store, |
2268 if (conf->fastcgi_lengths == NULL) { | 2269 if (conf->fastcgi_lengths == NULL) { |
2269 conf->fastcgi_lengths = prev->fastcgi_lengths; | 2270 conf->fastcgi_lengths = prev->fastcgi_lengths; |
2270 conf->fastcgi_values = prev->fastcgi_values; | 2271 conf->fastcgi_values = prev->fastcgi_values; |
2271 } | 2272 } |
2272 | 2273 |
2274 if (conf->upstream.upstream || conf->fastcgi_lengths) { | |
2275 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); | |
2276 if (clcf->handler == NULL && clcf->lmt_excpt) { | |
2277 clcf->handler = ngx_http_fastcgi_handler; | |
2278 } | |
2279 } | |
2280 | |
2273 #if (NGX_PCRE) | 2281 #if (NGX_PCRE) |
2274 if (conf->split_regex == NULL) { | 2282 if (conf->split_regex == NULL) { |
2275 conf->split_regex = prev->split_regex; | 2283 conf->split_regex = prev->split_regex; |
2276 conf->split_name = prev->split_name; | 2284 conf->split_name = prev->split_name; |
2277 } | 2285 } |