I’m using the X-Accel-Redirect feature in Nginx, but it fails to send
some files (returning a 404) because it does not URL-decode the
requested path. It does work when the file name need not be
So, for example, I have a file called “MudanÃ§a_ClimÃ¡tica.pdf” in
/srv/static (whose URL alias on Nginx is “/internal/static”), my
application would set the X-Accel-Redirect header to:
But then, Nginx will try to look up that file in the filesystem as:
However, if I requested “Climate_Change.pdf”, it works.
This seems like a bug, isn’t it? Or is it a bad configuration?