Issues filtering URLs (i.e. Layer 7 filtering).

From: Unai Rodriguez <me#u-journal.org>
Date: Mon, 06 Jul 2009 03:01:56 -0600


Dear All,

I am using HAProxy 1.3.15.2 on Debian Linux 5.0 (Lenny) and trying to do the following frontend-backend mapping based on ACLs:

  1. URLs containing /cas/ connect to backend casbe
  2. Any other, connect to iis

This is my configuration:

...

frontend f1 10.123.16.195:80

    mode http
    default_backend iis
    acl cas path_beg -i /cas/
    use_backend casbe if cas

backend casbe

    mode http
    server 10.123.12.108:80 10.123.12.108:80 check inter 5000 rise 2 fall 3

backend iis

    mode http
    server 10.123.16.124:80 10.123.16.124:80 check inter 5000 rise 2 fall 3
...

Now here is the issue... If I open a http://xxx/cas/ URL it will usually work fine. If I keep refreshing the browser a random number of times (from 5 to 50 times) using Ctrl + F5 it will eventually display a page not found error (HTTP 404). Looking at the logs I see that HAProxy is connecting me to the wrong backend server (a.k.a. iis) instead of casbe.

Something that I have noticed is the issue is easier to replicate using Google Chrome 2.0.172.33 than Firefox 3.5.

Has anyone experienced something similar?

Thank you so much,
unai Received on 2009/07/06 11:01

This archive was generated by hypermail 2.2.0 : 2009/07/06 11:15 CEST