Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4744

Add authorization header per backend

$
0
0

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

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4744

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>