Welcome! Log In Create A New Profile

Advanced

NGINX recursive_error_pages limited to 11?

Posted by o456092@rtrtr.com 
NGINX recursive_error_pages limited to 11?
September 24, 2012 04:52PM
Hi,

I have configured NGINX as an HTTP Asset locator, where the assets are found through a series of recursive errors. The problem that "I think" I have ran into, is that NGINX's recursive_error_pages is limited to a depth 11 - is this a fact?

upstream loc1
{
server srv1:8080;
}
...
upstream loc50
{
server srv50:8080;
}

server
{
recursive_error_pages on;

location /
{
error_page 404 502 503 504 = @loc2;
proxy_pass http://loc1;
}

location @loc2
{
error_page 404 502 503 504 = @loc3;
proxy_pass http://loc2;
}

....
location @loc38
{
error_page 404 502 503 504 = @loc39;
proxy_pass http://loc38;
}

...
}

I have tested various scenarios and I always seem to be blocked at the 11th cascading call with a 500 error - I move different servers around in fear that one of them (upstream servers) had a problem, but it was not specific to a server, regardless which asset I was going after http:<mynginx>/srv<n>/file<n> - once it hit 11 in depth.

Anyone has any ideas if this a true limit?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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