Forum Discussion
Insellj
Altostratus
Oct 17, 2023Set Header for Pool items and return it in the Virtual IP (VIP)
Hi, We have a Virtual IP (VIP) setup which load balances requests to a pool of servers. We need to be able to add in a response header depending on which pool server responds. This is so that we can...
- Oct 18, 2023
Found a solution 😁 CA_Valli PSFletchTheTek
when HTTP_RESPONSE { set xserveron_header_value [class match -value [IP::server_addr] equals webfarm_headers] if {$xserveron_header_value ne ""}{ HTTP::header insert X-Server-On $xserveron_header_value } }
Insellj
Altostratus
Oct 18, 2023Found a solution 😁 CA_Valli PSFletchTheTek
when HTTP_RESPONSE {
set xserveron_header_value [class match -value [IP::server_addr] equals webfarm_headers]
if {$xserveron_header_value ne ""}{
HTTP::header insert X-Server-On $xserveron_header_value
}
}
- PSFletchTheTekOct 18, 2023
Cumulonimbus
Glad you got a working soltuion!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects