Mercurial > hg > nginx-mail
comparison src/http/modules/ngx_http_fastcgi_module.c @ 348:e10168d6e371 NGINX_0_6_18
nginx 0.6.18
*) Change: now the ngx_http_userid_module adds start time microseconds
to the cookie field contains a pid value.
*) Change: now the full request line instead of URI only is written to
error_log.
*) Feature: variables support in the "proxy_pass" directive.
*) Feature: the "resolver" and "resolver_timeout" directives.
*) Feature: now the directive "add_header last-modified ''" deletes a
"Last-Modified" response header line.
*) Bugfix: the "limit_rate" directive did not allow to use full
throughput, even if limit value was very high.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 27 Nov 2007 00:00:00 +0300 |
parents | 05693816539c |
children | 583decdb82a4 |
comparison
equal
deleted
inserted
replaced
347:d53199b68e17 | 348:e10168d6e371 |
---|---|
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; |