On Monday 24 of October 2011 23:13:54 Amol wrote: > Thanks Brane for the reply > but setting these options in my haproxy config > > reqidel ^Server-Protocol: > reqadd Server-Protocol:\ https if src 127.0.0.1 > > gives me these errors > > $ sudo /etc/init.d/haproxy restart > * Restarting haproxy haproxy > [ALERT] 296/171242 (1024) : parsing [/etc/haproxy/haproxy.cfg:91] : error > detected while parsing a 'reqadd' condition. [ALERT] 296/171242 (1024) : > Error(s) found in configuration file : /etc/haproxy/haproxy.cfg [ALERT] > 296/171242 (1024) : Fatal errors found in configuration.
Oh, ofcourse, acl should be named or anonymous in braces... Try this: acl trusted_source src 127.0.0.1 reqidel ^Server-Protocol: reqadd Server-Protocol:\ https if trusted_source Best regards, Brane