Forum Discussion
Vish04_293402
Nimbostratus
Aug 31, 2018redirecting traffic to individual members based on condition
Http Request for Mobile will have header as “DEBUG_INDICATOR” with value “true” then request must go to In-Active member else go to Active member.
Pool 1: Primary Pool
1.1.1.1 ( Datacenter 1 is ...
Vish04_293402
Nimbostratus
Aug 31, 2018I thought of something like this;
when HTTP_REQUEST { if { [HTTP::header exists DEBUG_INDICATOR] and [HTTP::header DEBUG_INDICATOR] equals "true" } { node 1.1.1.1 set url [HTTP::header Host][HTTP::uri] set vip [IP::local_addr]:[TCP::local_port] foreach aHeader [HTTP::header names] { log local0. "HTTP REQUEST HEADER $aHeader: [HTTP::header value $aHeader]" } } }
Not sure if this is the correct method for creating this IRule
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
