mike Wrote: ------------------------------------------------------- > On Tue, Apr 7, 2009 at 9:17 AM, Larry Bates > wrote: > > I do something like this but solved it a > completely different way. I put > > storage behind the balanced servers and shared > it among them using NFS. That > > way every server sees a consistent set of files. > Otherwise uby jackdempsey - Nginx Mailing List - English
Hi all, I'm looking to use the hash module to split out many files across several servers. I've done some testing, and can confirm the obvious fact that when you add a new server, some of the files that used to be found at server1 are now looked for at the new server. One way to handle this would be to copy all of the files from all servers to the new server. I'd like to avoid this though, andby jackdempsey - Nginx Mailing List - English
Just a quick follow up....try_files is definitely nicer and more concise, but i realized my error and want to make it obvious here to anyone who might do the same: be very careful about using relative vs absolute symbolic links. file -> a/bar.png is very different (and won't work) than file -> /var/www/path/to/a/bar.png Thanks again Mike and Igor, really appreciate sticking witby jackdempsey - Nginx Mailing List - English
Igor Sysoev Wrote: ------------------------------------------------------- > On Wed, Apr 01, 2009 at 10:04:13AM -0700, Michael > Shadle wrote: > > > 2009/4/1 Igor Sysoev : > > > You should get > http://sysoev.ru/nginx/patch.try_files.0.6.35.5 > > > and use > > > > > > location / { > > > try_files $uri $uri/inby jackdempsey - Nginx Mailing List - English
Thanks Igor, Mike. I've tried the -e flag, and it doesn't seem to follow the symlinks correctly: # check if the file exists and serve it if (-e $request_filename) { access_log off; expires 1d; break; } # check for an index file, and serve that if (-e $request_filename/index.html) { rewrite (.*) $1/index.html break; }by jackdempsey - Nginx Mailing List - English
Hi all, I'm trying to serve up some static files that I've linked to via a symlink. The -f check is failing: # check if the file exists and serve it if (-f $request_filename) { access_log off; expires 1d; break; } as its obviously not a file. I saw something that suggested using -e instead for symlinks, but that doesn't seem to work for me eithby jackdempsey - Nginx Mailing List - English