How can I stop nginx from modifying an upstream URL?


I’m having trouble convincing nginx to stop manipulating my already
url encoded path. I want to X-Accel-Redirect to a path that is
encoded, and its re-encoding the existing characters.

Nginx encodes the % signs in the path as %25 so the already encoded /
(%2F) becomes %252F, and I can’t properly decode it.