404 error when %20 is in file name

Igor Sysoev igor at sysoev.ru
Sun Nov 27 17:21:46 UTC 2011


On Sun, Nov 27, 2011 at 11:20:17AM -0500, jstalin wrote:
> I'm running the latest version of nginx. When I try to serve a file with
> a "%20" in the name (example funny%20picture.jpg) I get a 404 error. The
> filename itself has the "%20" in it, not a space. But nginx refuses to
> serve the file. Any ideas on a configuration change I can make so that
> this works?

If you want to get "funny%20picture.jpg", you should encode "%" in request
as "%25": "funny%2520picture.jpg".


-- 
Igor Sysoev



More information about the nginx mailing list