summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2013-01-10Fixed "proxy_pass" with IP address and no port (ticket #276).Ruslan Ermilov1-0/+1
Upstreams created by "proxy_pass" with IP address and no port were broken in 1.3.10, by not initializing port in u->sockaddr. API change: ngx_parse_url() was modified to always initialize port (in u->sockaddr and in u->port), even for the u->no_resolve case; ngx_http_upstream() and ngx_http_upstream_add() were adopted.
2012-02-13Upstream: added callback hook for the "Set-Cookie" header.Valentin Bartenev1-0/+2
No functional changes.
2012-01-18Copyright updated.Maxim Konovalov1-0/+1
2011-12-26Cache locks initial implementation.Maxim Dounin1-0/+3
New directives: proxy_cache_lock on/off, proxy_cache_lock_timeout. With proxy_cache_lock set to on, only one request will be allowed to go to upstream for a particular cache item. Others will wait for a response to appear in cache (or cache lock released) up to proxy_cache_lock_timeout. Waiting requests will recheck if they have cached response ready (or are allowed to run) every 500ms. Note: we intentionally don't intercept NGX_DECLINED possibly returned by ngx_http_file_cache_read(). This needs more work (possibly safe, but needs further investigation). Anyway, it's exceptional situation. Note: probably there should be a way to disable caching of responses if there is already one request fetching resource to cache (without waiting at all). Two possible ways include another cache lock option ("no_cache") or using proxy_no_cache with some supplied variable. Note: probably there should be a way to lock updating requests as well. For now "proxy_cache_use_stale updating" is available.
2011-12-09Added the ngx_http_upstream_param_set_slot().Valentin Bartenev1-0/+9
2011-10-11Additional headers for proxy/fastcgi/uwsgi/scgi_ignore_headers.Maxim Dounin1-0/+3
Now the following headers may be ignored as well: X-Accel-Limit-Rate, X-Accel-Buffering, X-Accel-Charset.
2011-09-15Upstream: Connection header processing.Maxim Dounin1-0/+1
2011-09-15Upstream: Transfer-Encoding header processing.Maxim Dounin1-0/+3
2011-09-15Upstream: keepalive flag.Maxim Dounin1-0/+1
This patch introduces r->upstream->keepalive flag, which is set by protocol handlers if connection to upstream is in good state and can be kept alive.
2011-09-15Upstream: r->upstream->length type change to off_t.Maxim Dounin1-1/+1
Previous use of size_t may cause wierd effects on 32bit platforms with certain big responses transferred in unbuffered mode. Nuke "if (size > u->length)" check as it's not usefull anyway (preread body data isn't subject to this check) and now requires additional check for u->length being positive.
2011-07-29update r3945 with more descriptive error messageIgor Sysoev1-0/+1
2010-11-26style fixIgor Sysoev1-1/+1
2010-07-19proxy_cache_pass, fastcgi_cache_bypass, uwsgi_cache_bypass, scgi_cache_bypassIgor Sysoev1-1/+2
2010-07-02treat Set-Cookie as a header that forbids cachingIgor Sysoev1-0/+1
2010-07-02use shared ngx_http_upstream_ignore_headers_masks[]Igor Sysoev1-0/+1
2010-05-24proxy_no_cache and fastcgi_no_cacheIgor Sysoev1-0/+1
2009-12-23fix typoIgor Sysoev1-1/+1
2009-11-02proxy_bind, fastcgi_bind, and memcached_bindIgor Sysoev1-0/+4
2009-11-02rename ngx_peer_addr_t to ngx_addr_tIgor Sysoev1-1/+1
2009-11-02style fixIgor Sysoev1-1/+0
2009-07-27ngx_http_upstream_create() to cleanup the previous upstream afterIgor Sysoev1-0/+1
internal redirect
2009-06-18$upstream_cache_statusIgor Sysoev1-1/+1
2009-06-06proxy_cache_use_stale/fastcgi_cache_use_stale updatingIgor Sysoev1-2/+3
2009-05-19proxy_cache_methods and fastcgi_cache_methodsIgor Sysoev1-1/+4
2009-04-30proxy_ignore_headers and fastcgi_ignore_headersIgor Sysoev1-0/+7
2009-04-24style fixIgor Sysoev1-1/+1
2009-03-23a prelimiary proxy cache supportIgor Sysoev1-139/+153
2008-12-23variable support for unix sockets in fastcgi_pass and proxy_passIgor Sysoev1-0/+5
2008-12-11$upstream_response_lengthIgor Sysoev1-0/+1
2008-12-10delete surplus upstream.schema fieldIgor Sysoev1-2/+0
2008-12-09use already available r and u instead of evIgor Sysoev1-2/+6
2008-12-08*) refactor subrequest handling, now they run as separate posted requestsIgor Sysoev1-0/+3
*) now $upstream_addr, $upstream_status, $upstream_response_time can be used with log_subrequest
2008-10-30fix r1913Igor Sysoev1-1/+1
2008-09-30*) ngx_http_upstream_test_next()Igor Sysoev1-4/+17
*) add proxy_next_upstream http_502 and http_504 *) fix http_503
2008-08-17proxy_ssl_session_reuseIgor Sysoev1-0/+1
2008-03-03fix r1903Igor Sysoev1-0/+1
2008-02-11test response length in proxy/fastcgi_storeIgor Sysoev1-0/+2
2007-12-09*) now ngx_conf_set_str_array_slot() tests NGX_CONF_UNSET_PTRIgor Sysoev1-0/+3
this fixes fastcgi_catch_stderr segfault introduced in r1453 *) ngx_http_upstream_hide_headers_hash() *) proxy/fastcgi pass_header/hide_header use ngx_http_upstream_hide_headers_hash()
2007-11-27proxy_pass variables supportIgor Sysoev1-5/+14
2007-10-14fix English grammarIgor Sysoev1-1/+1
2007-09-15u_char* is enough to keep file nameIgor Sysoev1-1/+1
2007-08-09backup upstream serversIgor Sysoev1-0/+1
2007-07-13proxy_store and fastcgi_store were changed,Igor Sysoev1-1/+5
proxy_store_access and fastcgi_store_access were added
2007-07-12proxy_store and fastcgi_storeIgor Sysoev1-0/+2
2007-04-18store the upstream states before X-Accel-Redirect to a next upstreamIgor Sysoev1-1/+0
2007-04-10$upstream_http_... variablesIgor Sysoev1-0/+3
2006-12-12rewritten upstreamIgor Sysoev1-0/+1
2006-12-06the previous fix does not actually fix overflowIgor Sysoev1-1/+2
2006-12-04upstream choice modulesIgor Sysoev1-8/+47
2006-08-16nginx-0.3.59-RELEASE importrelease-0.3.59Igor Sysoev1-1/+1
*) Feature: now is possible to do several redirection using the "error_page" directive. *) Bugfix: the "dav_access" directive did not support three parameters. *) Bugfix: the "error_page" directive did not changes the "Content-Type" header line after the "X-Accel-Redirect" was used; the bug had appeared in 0.3.58.