Score:0

HaProxy - Add authorization header per backend

mw flag

I want to add an autorization header per backend, it's possible?

I already try this but is not working

backend default_ad_agent
        mode http
        http-request add-header Authorization "xxxx" if { srv_id 1 }
        http-request add-header Authorization "yyyy" if { srv_id 2 }
        server 192.168.60.32 192.168.60.32:8080 id 1 weight 1 maxconn 10000 check inter 60000 rise 2 fall 3
        server 192.168.60.31 192.168.60.31:8080 id 2  weight 1 maxconn 10000 check inter 60000 rise 2 fall 3
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.