Joel Eidsath
July 14, 2011 02:34PM
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@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nested error_page request

Joel Eidsath July 14, 2011 02:34PM

Re: Nested error_page request

Sirsiwal, Umesh July 14, 2011 02:44PM

Re: Nested error_page request

Joel Eidsath July 14, 2011 02:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 304
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