Problems with rewrite on windows

Igor Sysoev is at rambler-co.ru
Thu Sep 10 19:06:18 MSD 2009


On Thu, Sep 10, 2009 at 10:26:46AM -0400, halfd wrote:

> Igor Sysoev Wrote:
> 
> > Could you show your current configuration with
> > 
> > if (-f $request_filename ....
> > 
> > ?
> 
> location / {
>   root   c:/webroot/detfri.dk/site/www/;
>   if (-f $request_filename/index.html) {
>     rewrite (.*) $1/index.html break;
>   }
> }
> 
> The new with try_files looks like this
> 
> location / {
>   root   c:/webroot/detfri.dk/site/www/;
>   try_files $uri/index.html $uri;
> }

Well, then you need

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


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





More information about the nginx mailing list