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?