Forum Discussion
8 Replies
Sort By
- Thomas_Gobet_91Cirrostratus
Hi,
Here is an iRule to include Web servers adresses into the header.when HTTP_RESPONSE { HTTP::header insert Server_IP "[IP::server_addr]:[TCP::server_port]" }
- Alexis_Bykov_13NimbostratusI need to insert this info to HTTP Header only for some servers, not for all
- Alexis_Bykov_13NimbostratusCan I use following iRule for pool which has name Pool_Name?: when HTTP_RESPONSE{ if {pool } {HTTP::header insert Server_IP [IP::server_addr]} }
- Thomas_GobetNimbostratus
Hi,
Here is an iRule to include Web servers adresses into the header.when HTTP_RESPONSE { HTTP::header insert Server_IP "[IP::server_addr]:[TCP::server_port]" }
- Alexis_Bykov_13NimbostratusI need to insert this info to HTTP Header only for some servers, not for all
- Alexis_Bykov_13NimbostratusCan I use following iRule for pool which has name Pool_Name?: when HTTP_RESPONSE{ if {pool } {HTTP::header insert Server_IP [IP::server_addr]} }
- Thomas_GobetNimbostratus
You can create a data group with all servers for which you want to insert this information.
Then when your data group is created, your iRule will be :
when HTTP_RESPONSE { if { [class match [IP::server_addr] equals my_ip_datagroup] } { HTTP::header insert Server_IP "[IP::server_addr]:[TCP::server_port]" }
- Thomas_GobetNimbostratus
Here is an iRule with the condition based on the pool choosen :
when HTTP_RESPONSE { if { [LB::server pool] equals your_pool_name } { HTTP::header insert Server_IP "[IP::server_addr]:[TCP::server_port]" }
Is your iRule going to be applied on multiple virtual servers ?