Klaus Demo nginx / 886c629
Better handling of late upstream creation. Configuration with duplicate upstream blocks defined after first use, i.e. like server { ... location / { proxy_pass http://backend; } } upstream backend { ... } upstream backend { ... } now correctly results in "duplicate upstream" error. Additionally, upstream blocks defined after first use now handle various server directive parameters ("weight", "max_fails", etc.). Previously configuration like server { ... location / { proxy_pass http://backend; } } upstream backend { server 127.0.0.1 max_fails=5; } incorrectly resulted in "invalid parameter "max_fails=5"" error. Maxim Dounin 10 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
43344334 continue;
43354335 }
43364336
4337 if (flags & NGX_HTTP_UPSTREAM_CREATE) {
4338 uscfp[i]->flags = flags;
4339 }
4340
43374341 return uscfp[i];
43384342 }
43394343