Forum Discussion
Insellj
Oct 17, 2023Altostratus
Set 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
Oct 18, 2023Altostratus
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
}
}
- Oct 18, 2023
Glad you got a working soltuion!
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