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 soby halfd - Nginx Mailing List - English
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/indby halfd - Nginx Mailing List - English
Igor Sysoev Wrote: ------------------------------------------------------- > Probbaly, you should use: > > location / { > root c:/webroot/detfri.dk/site/www/; > try_files $uri/index.html $uri; > } Tried that, and unfortunately it does not work. Nginx gives me a 500 due to too many internal redirects. It still works then not containing ASCII chars, so thats sby halfd - Nginx Mailing List - English
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: &by halfd - Nginx Mailing List - English
BTW - This is nginx -V : nginx version: nginx/0.7.61 configure arguments: --builddir=objs.msvc8 --crossbuild=win32 --with-debug --pre fix= --conf-path=conf/nginx.conf --pid-path=logs/nginx.pid --http-log-path=logs/ access.log --error-log-path=logs/error.log --sbin-path=nginx.exe --http-client-b ody-temp-path=temp/client_body_temp --http-proxy-temp-path=temp/proxy_temp --htt p-fastcgi-temby halfd - Nginx Mailing List - English
Hello everyone! I am experiencing a rather unsuspected problem with rewrites in nginx on a Windows 2003 server. I have a system running behind nginx, which generates HTML files and places them in folders. In my config I have following: if (-f $request_filename/index.html) { rewrite (.*) $1/index.html break; } As you all know, this is to produce clean urls, and this works weby halfd - Nginx Mailing List - English