On 12/21/2015 11:09 AM, Willy Tarreau wrote:
On Mon, Dec 21, 2015 at 10:54:00AM -0500, Brendan Kearney wrote:
rpm -qi haproxy
Name        : haproxy
Version     : 1.5.12
Release     : 1.fc20
Architecture: x86_64

i did try and it seems the version might be at issue..

This config stanza:

backend tproxy
         acl https ssl_fc

         http-request set-uri http://%[req.hdr(Host)]%[path]?%[query]
unless https

         server proxy1 192.168.88.1:3128 check inter 10000
         server proxy2 192.168.88.2:3128 check inter 10000

results in the below error message:

[ALERT] 354/105146 (26637) : parsing [/etc/haproxy/haproxy.cfg:149]:
'http-request' expects 'allow', 'deny', 'auth', 'redirect', 'tarpit',
'add-header', 'set-header', 'replace-header', 'replace-value',
'set-nice', 'set-tos', 'set-mark', 'set-log-level', 'add-acl',
'del-acl', 'del-map', 'set-map', but got 'set-uri'.
[ALERT] 354/105146 (26637) : Error(s) found in configuration file :
/etc/haproxy/haproxy.cfg
Indeed, set-uri appeared in 1.6.

I don't see how to do it without set-uri. The only action which can
affect the request URI is reqrep, and it doesn't take variables nor
sample fetches on input. Thus you'll have to upgrade your version
I'm afraid.

Regards,
Willy

the feedback is most appreciated. I am in a holding pattern for upgrades right now, but will keep that in mind. Thanks a bunch for confirming.

brendan

Reply via email to