aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_fastcgi_module.c
Commit message (Collapse)AuthorAge
...
* Upstream: fix $upstream_status variable.Piotr Sikora2014-02-11
| | | | | | | | Previously, upstream's status code was overwritten with cached response's status code when STALE or REVALIDATED response was sent to the client. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
* Use ngx_chain_get_free_buf() in pipe input filters.Valentin Bartenev2013-12-11
| | | | No functional changes.
* Upstream: skip empty cache headers.Maxim Dounin2013-11-29
| | | | | Notably this fixes HTTP_IF_MODIFIED_SINCE which was always sent with cache enabled in fastcgi/scgi/uwsgi after 43ccaf8e8728.
* Upstream: cache revalidation with conditional requests.Maxim Dounin2013-11-18
| | | | | | | | | | | | The following new directives are introduced: proxy_cache_revalidate, fastcgi_cache_revalidate, scgi_cache_revalidate, uwsgi_cache_revalidate. Default is off. When set to on, they enable cache revalidation using conditional requests with If-Modified-Since for expired cache items. As of now, no attempts are made to merge headers given in a 304 response during cache revalidation with headers previously stored in a cache item. Headers in a 304 response are only used to calculate new validity time of a cache item.
* FastCGI: non-buffered mode support.Maxim Dounin2013-09-27
|
* Upstream: proxy_no_cache, fastcgi_no_cache warnings removed.Maxim Dounin2013-09-27
|
* Upstream: http_403 support in proxy_next_upstream (and friends).Maxim Dounin2013-05-27
| | | | | | | | | The parameter is mostly identical to http_404, and is expected to be used in similar situations. The 403 code might be returned by a backend instead of 404 on initial sync of new directories with rsync. See here for feature request and additional details: http://mailman.nginx.org/pipermail/nginx-ru/2013-April/050920.html
* FastCGI: proper handling of split fastcgi end request.Maxim Dounin2013-02-01
| | | | | | If fastcgi end request record was split between several network packets, with fastcgi_keep_conn it was possible that connection was saved in incorrect state (e.g. with padding bytes not yet read).
* FastCGI: unconditional state transitions.Maxim Dounin2013-02-01
| | | | | | Checks for f->padding before state transitions make code hard to follow, remove them and make sure we always do another loop iteration after f->state is set to ngx_http_fastcgi_st_padding.
* FastCGI: fixed wrong connection close with fastcgi_keep_conn.Maxim Dounin2013-02-01
| | | | | | | | | | With fastcgi_keep_conn it was possible that connection was closed after FCGI_STDERR record with zero padding and without any further data read yet. This happended as f->state was set to ngx_http_fastcgi_st_padding and then "break" happened, resulting in p->length being set to f->padding, i.e. 0 (which in turn resulted in connection close). Fix is to make sure we continue the loop after f->state is set.
* Fixed and improved the "*_bind" directives of proxying modules.Ruslan Ermilov2013-01-16
| | | | | | | The "proxy_bind", "fastcgi_bind", "uwsgi_bind", "scgi_bind" and "memcached_bind" directives are now inherited; inherited value can be reset by the "off" parameter. Duplicate directives are now detected. Parameter value can now contain variables.
* Allow the complex value to be defined as an empty string.Ruslan Ermilov2012-12-06
| | | | | This makes conversion from strings to complex values possible without the loss of functionality.
* Added three missing checks for NULL after ngx_array_push() calls.Valentin Bartenev2012-08-08
| | | | Found by Coverity.
* Fastcgi: fixed padding handling on fixed-size records.Maxim Dounin2012-05-11
| | | | | | | | Padding was incorrectly ignored on end request, empty stdout and stderr fastcgi records. This resulted in protocol desynchronization if fastcgi application used these records with padding for some reason. Reported by Ilia Vinokurov.
* Added r->state reset on fastcgi/scgi/uwsgi request start.Maxim Dounin2012-05-11
| | | | | | | | | Failing to do so results in problems if 400 or 414 requests are redirected to fastcgi/scgi/uwsgi upstream, as well as after invalid headers got from upstream. This was already fixed for proxy in r3478, but fastcgi (the only affected protocol at that time) was missed. Reported by Matthieu Tourne.
* Fixed grammar in error messages.Ruslan Ermilov2012-04-12
|
* Fixed incorrect ngx_cpystrn() usage in ngx_http_*_process_header().Maxim Dounin2012-03-15
| | | | | | | | This resulted in a disclosure of previously freed memory if upstream server returned specially crafted response, potentially exposing sensitive information. Reported by Matthew Daley.
* Whitespace fixes.Maxim Dounin2012-03-05
|
* Copyright updated.Maxim Konovalov2012-01-18
|
* Fixed proxy_cache_use_stale in "no live upstreams" case.Maxim Dounin2012-01-16
|
* Cache lock support for fastcgi, scgi, uwsgi.Maxim Dounin2011-12-26
|
* FastCGI: added "if_not_empty" flag support to the "fastcgi_param" directive.Valentin Bartenev2011-12-09
|
* Fixed fastcgi/scgi/uwsgi_param inheritance.Maxim Dounin2011-11-14
| | | | | | | | | | | | | The following problems were fixed: 1. Directive fastcgi_cache affected headers sent to backends in unrelated servers / locations (see ticket #45). 2. If-Unmodified-Since, If-Match and If-Range headers were sent to backends if fastcgi_cache was used. 3. Cache-related headers were sent to backends if there were no fastcgi_param directives and fastcgi_cache was used at server level.
* Separate functions to merge fastcgi/scgi/uwsgi params.Maxim Dounin2011-11-14
| | | | No functional changes.
* Fixed NGX_CONF_TAKE1/NGX_CONF_FLAG misuse.Sergey Budnevitch2011-11-14
|
* Fixed loss of chain links in fastcgi module.Maxim Dounin2011-09-20
|
* Keepalive support in fastcgi.Maxim Dounin2011-09-15
| | | | | | By default follow the old behaviour, i.e. FASTCGI_KEEP_CONN flag isn't set in request and application is responsible for closing connection once request is done. To keep connections alive fastcgi_keep_conn must be activated.
* Fix ignored headers handling in fastcgi/scgi/uwsgi.Maxim Dounin2011-08-19
| | | | The bug had appeared in r3561 (fastcgi), r3638 (scgi), r3567 (uwsgi).
* update r3945 with more descriptive error messageIgor Sysoev2011-07-29
|
* fix case when a host in fastcgi_pass, scgi_pass, and uwsgi_passIgor Sysoev2011-04-04
| | | | is given by expression and refers to a defined upstream
* fix large stderr handling without http cacheIgor Sysoev2011-01-20
| | | | | patch by Maxim Dounin the bug has been introduced in r3461
* fix fastcgi_split_path_info, if URI was not fully capturedIgor Sysoev2010-08-03
|
* inherit proxy_pass, fastcgi_pass, uwsgi_pass, scgi_pass insideIgor Sysoev2010-08-03
| | | | a limit_except block if no handler was defined for the block
* fix directive typeIgor Sysoev2010-08-02
|
* add warnings for proxy_no_cache and fastcgi_no_cacheIgor Sysoev2010-07-19
|
* proxy_cache_pass, fastcgi_cache_bypass, uwsgi_cache_bypass, scgi_cache_bypassIgor Sysoev2010-07-19
|
* use ngx_http_test_predicates(), ngx_http_set_predicate_slot()Igor Sysoev2010-07-14
| | | | delete ngx_http_cache(), ngx_http_no_cache_set_slot()
* do not use a cache headers set to hideIgor Sysoev2010-07-02
|
* use shared ngx_http_upstream_ignore_headers_masks[]Igor Sysoev2010-07-02
|
* change variable namesIgor Sysoev2010-06-08
|
* do not pass if-... headers for cacheable fastcgi responsesIgor Sysoev2010-06-04
|
* rename variable to conform to the next commitIgor Sysoev2010-06-03
|
* allow fastcgi_param to override client headers using HTTP_ parametersIgor Sysoev2010-06-03
|
* add client request headers debug logging in fastcgiIgor Sysoev2010-06-03
|
* remove the special static fastcgi_param values processing,Igor Sysoev2010-06-02
| | | | because it is anyway very seldom case
* proxy_no_cache and fastcgi_no_cacheIgor Sysoev2010-05-24
|
* delete warnings of proxy_upstream_max_fails, proxy_upstream_fail_timeout,Igor Sysoev2010-05-20
| | | | | | fastcgi_upstream_max_fails, fastcgi_upstream_fail_timeout, memcached_upstream_max_fails, and memcached_upstream_fail_timeout directives obsolete since 0.5.0 version
* ngx_str_set() and ngx_str_null()Igor Sysoev2010-05-14
|
* fix building without HTTP cache, the bug had been introduced in r3461Igor Sysoev2010-04-06
|
* fix segfault if there was non cached large FastCGI stderr output before header,Igor Sysoev2010-03-10
| | | | the bug had been introduced in r3461