Welcome! Log In Create A New Profile

Advanced

Quick question about try_files

Aaron Starr
January 07, 2011 02:46PM
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.

Aaron
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Quick question about try_files

Aaron Starr January 07, 2011 02:46PM

Re: Quick question about try_files

Maxim Dounin January 07, 2011 04:06PM

Re: Quick question about try_files

Aaron Starr January 07, 2011 04:32PM

Re: Quick question about try_files

Maxim Dounin January 07, 2011 08:22PM

Re: Quick question about try_files

Aaron Starr January 07, 2011 09:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 237
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready