Problems with rewrite on windows
halfd
nginx-forum at nginx.us
Thu Sep 10 18:26:46 MSD 2009
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;
}
halfdan
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,6256,6289#msg-6289
More information about the nginx
mailing list