Hi Brane, this time it worked (the server restarted fine after i added those lines) can you please elaborate how adding these lines has affected my configuration ? since i still see that on the clients that the php variable $_SERVER['HTTPS'] is "Not Https"
Thanks ________________________________ From: Brane F. Gračnar <[email protected]> To: Amol <[email protected]> Cc: "[email protected]" <[email protected]> Sent: Monday, October 24, 2011 5:37 PM Subject: Re: php $_server variable when using haproxy & stunnel 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

