On Wed, Apr 03, 2013 at 03:37:09PM +0200, Sander Klein wrote:
> On 03.04.2013 14:20, Willy Tarreau wrote:
> >On Wed, Apr 03, 2013 at 12:09:37PM +0200, Sander Klein wrote:
> >>Hmmm, nope, it still doesn't work
> >>
> >>I did:
> >>
> >>http-request set-header X-Forwarded-Proto https if { ssl_fc }
> >>http-request set-header X-Forwarded-Ssl on if { ssl_fc }
> >>http-request set-header X-Forwarded-Proto http if !{ ssl_fc }
> >>http-request set-header X-Forwarded-Ssl off if !{ ssl_fc }
> >
> >OK the bug was there from the beginning (1.5-dev16) and affects
> >both set-header and add-header. They control that no more word
> >is present on the line so they reject the "if" and "unless"
> >keywords...
> >
> >I'm attaching the fix.
>
> Yay! It works ;-)
Great, thanks for the feedback :-)
Willy