Problems with rewrite on windows

Igor Sysoev is at rambler-co.ru
Thu Sep 10 17:16:45 MSD 2009


On Thu, Sep 10, 2009 at 08:59:33AM -0400, halfd wrote:

> Hi Igor thanks for the reply and the idea, 
> 
> however it is still not working.
> 
> Now I get this error :
> 2009/09/10 14:49:51  3388#2684: *87 rewrite or internal redirection cycle while internal redirect to "/mere/??v//index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html", client: IPADDR, server: SERVERNAME,  request: "GET /mere/%C3%A6v/ HTTP/1.1", host: "SERVERNAME", referrer: "http://SERVERNAME/mere/"
> 
> The setting I have in nginx.conf is as so :
> 
> location / {
>      root   c:/webroot/detfri.dk/site/www/;
>      try_files $uri $uri/index.html;
> }
> 
> At least now, there is a 500 server error. And it still works on ASCII urls.

Probbaly, you should use:

location / {
    root   c:/webroot/detfri.dk/site/www/;
    try_files $uri/index.html $uri;
}


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





More information about the nginx mailing list