Nested error_page request
Sirsiwal, Umesh
usirsiwal at verivue.com
Thu Jul 14 22:45:28 MSD 2011
Hey Joel,
You may want to look at:
recursive_error_pages on;
-Umesh
On Jul 14, 2011, at 2:33 PM, Joel Eidsath wrote:
> Hello,
>
> I'm trying to figure a way around a nested error_page request (which
> doesn't seem to work). The problem is that I've got a memcached setup
> that looks like this:
>
> server {
>
> error_page 500 502 /site_media/flat/500.html;
> proxy_intercept_errors on;
>
> <snip>...
>
> location / {
> <snip>...
> set $memcached_key "http://domain.com$uri";
> memcached_pass <IP>:<PORT>;
> error_page 404 502 = @cache_miss;
> }
>
> location @cache_miss { proxy_pass http://backend; }
> }
>
> The cache_miss error_page directive seems to disable my ability to set
> a second error_page for 500 errors that then come from the backend. Is
> there a way that I can make this work, either by modifying my
> memcached setup or my error_page setup?
>
> Joel
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list