From f60dde9767d71d0d69d3a98646d813df423e7034 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sun, 17 Aug 2008 17:44:08 +0000 Subject: [PATCH] disable original URI usage in proxy_pass after X-Accel-Redirect --- src/http/ngx_http_upstream.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 191219b73..c27099616 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -1300,6 +1300,8 @@ ngx_http_upstream_process_header(ngx_event_t *rev) r->method = NGX_HTTP_GET; } + r->valid_unparsed_uri = 0; + ngx_http_internal_redirect(r, uri, &args); return; }