Welcome! Log In Create A New Profile

Advanced

Re: URI escaping for X-Accel-Redirect and proxy_pass in 1.4.7 and 1.6.0

July 03, 2014 03:41AM
Jonathan Matthews Wrote:
-------------------------------------------------------
> On 17 June 2014 07:49, gwilym <nginx-forum@nginx.us> wrote:
> > The workaround is to _double_ encode so as to send back
> > "image%2520with%2520spaces.jpg" to Nginx but we can't roll this out
> until
> > Nginx 1.6 because it breaks 1.4... but we can't roll out 1.6 until
> the code
> > is there.
>
> I don't have a nice fix for you I'm afraid! However, as a way to get
> out of your chicken-and-egg upgrade problem, could you pass a static
> header containing the nginx version to your backend, and get it to
> switch its X-Accel-Redirect response based on this value?
>
> J

This was the only clean, cross-version solution I could think of too and would recommend to others. We didn't end up going with it though as we ended up having to fast track the 1.6 rollout for other reasons, so we took a brief window of errors on the chin and cleaned them up later.

Thanks, though.
Subject Author Posted

URI escaping for X-Accel-Redirect and proxy_pass in 1.4.7 and 1.6.0

gwilym June 17, 2014 02:49AM

Re: URI escaping for X-Accel-Redirect and proxy_pass in 1.4.7 and 1.6.0

Jonathan Matthews June 17, 2014 08:16PM

Re: URI escaping for X-Accel-Redirect and proxy_pass in 1.4.7 and 1.6.0

gwilym July 03, 2014 03:41AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 177
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready