Is there any way to set a HTTP header on a redirect being emitted by
haproxy?

Given the following simplified config:

global
    log stdout user

defaults
    log global
    timeout client 9s
    timeout server 10s
    timeout connect 1s

frontend test_fe
    mode http
    http-response set-header Foo Bar
    bind localhost:9999
    redirect prefix https://www.example.com

It appears that the Foo header is not set when the redirect is emitted. Is
there any way to configure HAproxy to process `http-response` statements on
a redirect?

-- 
James Brown
Engineer

Reply via email to