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

Jonathan Matthews contact at jpluscplusm.com
Wed Jun 18 00:14:13 UTC 2014

On 17 June 2014 07:49, gwilym <nginx-forum at 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?


More information about the nginx mailing list