On 6 Aug 2016 1:31 am, "Matthias Fechner" <ide...@fechner.net> wrote:
>
> Dear all,
>
>
> I use haproxy in tcp mode to have http2 working.
> Now I have the problem that the backend has to know if the connection
> was encrypted or not (some websites using this information to add the
> schema to css and javascript URIs).
>

Afaik, since http2 is by default tls encrypted just by specifying h2 as
protocol to the backend should be enough i guess.

> Normally I think a
> reqadd X-Forwarded-Proto:\ https
>
> should do the trick.
>
> Will this work if working in tcp mode or are there other tricks to do
this?
>
>
> Thanks
> Matthias
>
> --
>
> "Programming today is a race between software engineers striving to
> build bigger and better idiot-proof programs, and the universe trying to
> produce bigger and better idiots. So far, the universe is winning." --
> Rich Cook
>
>

Reply via email to