On 12/15/2010 5:00 PM, Cyril Bonté wrote:
Hi Shawn,

Le mardi 14 décembre 2010 20:34:49, Shawn Heisey a écrit :
I spoke too soon.  This just made it pass through unchanged, and the URL
rewriting on the backend took care of it.

It seems that this config line:

      reqirep ^([^\ ]*)\ /string1/(.*) \1\
/cgi-bin/cgi-gw.exe?action=webres&id=\2

Does not match this request:

GET /string1/20101117/CL03874 HTTP/1.1

It all looks OK to me, and most of it's taken straight from the examples
in the documentation.  Can anyone with a discerning eye tell me what I
did wrong?
In your initial post, you didn't provide your "defaults" section. I guess
there's one (with "mode http") and depending on what is in it (or not), it may
explain things.

Are you sure you are using "option httpclose" or "option http-server-close" ?
Without that, reqirep and your acls will only work on the first request of a
connection.

Defaults section below. This is the haproxy 1.4.8 package included with Fedora 14. I may decide to install a 1.5-dev version from source, unless there are nightly RPMs available.

I've actually solved my problems, but in a non-elegant way, and started a new thread for the remaining items I wanted help with.

defaults
    mode                    http
    log                     global
    option                  httplog
    option                  dontlognull
    option http-server-close
    option forwardfor       except 127.0.0.0/8
    option                  redispatch
    retries                 2
    timeout http-request    10s
    timeout queue           1m
    timeout connect         10s
    timeout client          1m
    timeout server          1m
    timeout http-keep-alive 10s
    timeout check           10s
    maxconn     4096


Reply via email to