Mercurial > hg > nginx
comparison src/http/modules/ngx_http_fastcgi_module.c @ 1658:13f8dec720b5
proxy_pass variables support
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 27 Nov 2007 13:34:13 +0000 |
parents | 481fe1bc191b |
children | d24280472a9f |
comparison
equal
deleted
inserted
replaced
1657:6a8a066adc98 | 1658:13f8dec720b5 |
---|---|
440 | 440 |
441 u = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_t)); | 441 u = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_t)); |
442 if (u == NULL) { | 442 if (u == NULL) { |
443 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 443 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
444 } | 444 } |
445 | |
446 u->schema = flcf->upstream.schema; | |
445 | 447 |
446 u->peer.log = r->connection->log; | 448 u->peer.log = r->connection->log; |
447 u->peer.log_error = NGX_ERROR_ERR; | 449 u->peer.log_error = NGX_ERROR_ERR; |
448 #if (NGX_THREADS) | 450 #if (NGX_THREADS) |
449 u->peer.lock = &r->connection->lock; | 451 u->peer.lock = &r->connection->lock; |
2169 | 2171 |
2170 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); | 2172 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); |
2171 | 2173 |
2172 clcf->handler = ngx_http_fastcgi_handler; | 2174 clcf->handler = ngx_http_fastcgi_handler; |
2173 | 2175 |
2174 lcf->upstream.location = clcf->name; | |
2175 | |
2176 if (clcf->name.data[clcf->name.len - 1] == '/') { | 2176 if (clcf->name.data[clcf->name.len - 1] == '/') { |
2177 clcf->auto_redirect = 1; | 2177 clcf->auto_redirect = 1; |
2178 } | 2178 } |
2179 | 2179 |
2180 return NGX_CONF_OK; | 2180 return NGX_CONF_OK; |