Forum Discussion
Insert Header in Response
hi all,
i want to add a header with lb server selected. moreover i want to hide the real ips, so i created data group with all ips.
my irule looks like this:
when HTTP_RESPONSE {
HTTP::header insert SERVER_NAME [class match -value [LB::server addr] equals "server_odb"]
`
}
now, the irule is working and it does insert the header according to data group, but i constantly receiving tcl error in ltm log:
`01220001:3: TCL error: /Common/IP-Header-Response - Operation not supported (line 1) invoked from within "HTTP::header insert SERVER_NAME [class match -value [LB::server addr] equals "server_odb"]"
anyone can help with understanding the issue?
thanks Max
4 Replies
- Kevin_Stewart
Employee
What BIG-IP version are you on? This code appears to work at intended on 11.6.
- Max_175689
Nimbostratus
11.6
- Kevin_Stewart
Employee
Do you have other iRules applied to the same VIP? Other code in the same iRule?
- Max_175689
Nimbostratus
yes, i have two more irules.
i've changed the order of the irules and it solved the problem.
Thank you Kevin!! you lead me to the right direction.
now i need to figure out the logic and maybe combine some of the irules together.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
