Forum Discussion
ahmed_ismail_21
Nimbostratus
Apr 02, 2016iRule Script Request
please I need iRule match the below procedure.
1- Matching by Header " REFERER" section a- Match header " REFERER" contains vlaue MUSEPROXY=1103, then forward traffic persist to sr1 2- By URL pattern a- if URL pattern contains MUSEPROXY=1103, then forward traffic persist to sr1
3- By URL second value
a- if URL pattern contain .1103. then forward traffic persist to sr1
4-if nothing of policies match apply default load balancing " least connections "
1 Reply
- gilliek_282631
Altostratus
Hi,
The irule below may fit your request :
when HTTP_REQUEST { switch -glob "[HTTP::header "Referer"]|[HTTP::uri]" { "*MUSEPROXY=1103*|*" - "*|*MUSEPROXY=1103*" - "*|*.1103.*" { node srv1 } default { pool defined with least connection lb method pool pool1 } } }
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