# HG changeset patch # User Igor Sysoev # Date 1228925770 0 # Node ID b1a24d3cf4dd826ad7bd97c34cea401250e08c15 # Parent dbe746851b31d5a965e4da674a372f199a9aa6ef clear fastcgi ctx for internal redirection via named location diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -419,6 +419,8 @@ ngx_http_fastcgi_handler(ngx_http_reques return NGX_HTTP_INTERNAL_SERVER_ERROR; } + ngx_http_set_ctx(r, NULL, ngx_http_fastcgi_module); + u = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_t)); if (u == NULL) { return NGX_HTTP_INTERNAL_SERVER_ERROR;