diff --git a/NEWS b/NEWS index 793c2475..d2298696 100644 --- a/NEWS +++ b/NEWS @@ -17,6 +17,7 @@ NEWS * Fix fastcgi authorization in subdirectories with check-local=disabled; don't split pathinfo for authorizer. (#963) * Add possibility to disable methods in mod_compress (#1773) * Fix duplicate connection keep-alive/transfer-encoding headers (#960) + * Fixed fix for round-robin in mod_proxy (forgot to increment the index) (#1715) - 1.4.20 - 2008-09-30 diff --git a/src/mod_proxy.c b/src/mod_proxy.c index 832306fe..2f00cc4f 100644 --- a/src/mod_proxy.c +++ b/src/mod_proxy.c @@ -1198,7 +1198,8 @@ static handler_t mod_proxy_check_extension(server *srv, connection *con, void *p host = (data_proxy *)extension->value->data[0]; /* Use last_used_ndx from first host in list */ - k = ndx = host->last_used_ndx; + k = host->last_used_ndx; + ndx = k + 1; /* use next host after the last one */ if (ndx < 0) ndx = 0; /* Search first active host after last_used_ndx */