Quick question about try_files

Aaron Starr astarr at wiredquote.com
Fri Jan 7 22:41:06 MSK 2011

Hello, all.

nginx version: nginx/0.7.67

This works great to look first in fast local storage, and then fall back to
slower storage for older archives:

    location ^~ /providers/ {
      error_page 404 = @archives;
      log_not_found off;
    location @archives {
      rewrite "/providers/(.*)" /archives/providers/$1 last;

I thought I could tidy this up by doing the following, but it doesn't work:

    location ^~ /providers/ {
      try_files $uri /archives$uri @mongrel_app;

Anyone see why? Thanks in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110107/6cb60610/attachment.html>

More information about the nginx mailing list