Problems with rewrite on windows

Igor Sysoev is at rambler-co.ru
Wed Sep 16 17:41:00 MSD 2009


On Tue, Sep 15, 2009 at 10:10:03AM -0400, halfd wrote:

> Hi again everyone,
> 
> I'm still having great difficulties getting this to work.
> 
> (clean urls by having folders with index.html files in them generated by backend) 
> As of now, nginx doesn??t find an index.html file in a folder, if the foldername contains non ascii chars.
> 
> Igor said this was due to a bug in nginx on windows, which I can confirm, since this setup works on linux and os x.
> 
> A sollution :
> 
> > Well, then you need
> > 
> >  location / {
> >    root   c:/webroot/SITE/site/www/;
> >    try_files $uri $uri/index.html =404;
> >  }
> 
> Unfortunately this does not work, but does give me an 404.
> 
> The thing is, there is a file at the path, but nginx is not finding it due to a non-ascii character in the url.
> Weird thing, because it works when accessing the file directly.
> 
> ie. 
> 
> /something/??rne/index.html = works
> /something/??rne/ = does not work
> 
> Also urls with only ascii chars work in both cases
> 
> /something/else/index.html = works
> /something/else/ = works
> 
> This seems to be an error in nginx for windows, so maybe the solution is to beg my client to install linux on their server instead :) ... unfortunately this seems further fetched than getting nginx to function.
> 
> Anybody got some insight?

This bug will be fixed in 0.8.16.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list