Hi,

Am 26.02.2017 um 19:02 schrieb thierry.fourn...@arpalert.org:
Hi,

If I understand, the 301 is produced by haproxy. If it is the case,
there are an ugly soluce.

Haproxy can't add header to a redirect because redirect is a final
directive. After executing the redirect no more action are executed.

The trick is to create a listen proxy dedicated for redirect, and
modify the response of these proxy from the main proxy. If a dedicated
proxy produces the response, the main proxy considers this as forwarded
traffic and can add headers.

Also see:
http://blog.haproxy.com/2015/06/09/haproxy-and-http-strict-transport-security-hsts-header-in-http-redirects/


Lukas

Reply via email to