Ticket #516 (closed defect: fixed)

Opened 2 years ago

Last modified 2 months ago

using round-robin as a balance scheme to reverse proxy to a single server doesn't seem to work

Reported by: yusufg@gmail.com Assigned to: jan
Priority: normal Milestone:
Component: mod_proxy Version: 1.4.18
Severity: normal Keywords: patch
Cc: Blocking:
Need Feedback: 0

Description (Last modified by conny)

Hi, I'm using lighttpd 1.4.10 on a CentOS 4.2/x86-64 box which has been configured to be a reverse proxy to Apache 2.2/mod-php server. lighttpd listens on the routable IP port 80 and Apache listens on 127.0.0.1 port 80

If I have the following config

$SERVER["socket"] == "ip.ad.dr.ess:80" {
proxy.balance = "round-robin"
proxy.server  = ( "" => ( ( "host" => "127.0.0.1" )
                  ) )
}

I get the following when I visit the website hosted on the ip

2006-02-11 04:23:14: (log.c.75) server started
2006-02-11 04:23:22: (mod_proxy.c.1249) no proxy-handler found for: /
2006-02-11 04:23:22: (mod_proxy.c.1249) no proxy-handler found for: /favicon.ico

switching proxy.balance to either "hash" or "fair" makes everything work. Does anybody else use "round-robin" as a reverse proxy balance mechanism. I was hoping round-robin would become a no-op when there is only one backend server.

Attachments

0016-Fix-RoundRobing-in-mod_proxy-516.patch (0.7 kB) - added by stbuehler on 02/20/2008 05:18:56 PM.

Change History

02/13/2006 01:27:44 PM changed by conny

  • description changed.

10/06/2006 02:33:57 AM changed by anonymous

$SERVERsocket? == "ip.ad.dr.ess:80" { proxy.balance = "round-robin" proxy.server = ( "" => ( ( "host" => "127.0.0.1" )

) )

04/28/2007 12:16:19 AM changed by anonymous

I'm seeing the same problem with 1.4.15. Is anybody reading these bug reports?

02/20/2008 05:18:35 PM changed by stbuehler

  • keywords set to patch.
  • version changed from 1.4.10 to 1.4.18.
  • blocking changed.
  • pending changed.

I think i found the bug, patch attached.

02/20/2008 05:18:56 PM changed by stbuehler

  • attachment 0016-Fix-RoundRobing-in-mod_proxy-516.patch added.

02/26/2008 04:32:18 PM changed by stbuehler

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [2092]


Add/Change #516 (using round-robin as a balance scheme to reverse proxy to a single server doesn't seem to work)




Change Properties
Action