Forum Discussion
irule help
Hi have a request for the follwing
Please implement below rules for the following on http and https on xxx.yyy.com
https://xxx.yyy.com/
https://xxx.yyy.com/
if url containls "12_SERVICE=FILE_URLS" or "12_SERVICE=FILE_URLS2" and "12_SERVICE=FILE_URLS=PUBLIC_DOC_XML"
send traffic to "xxx2.yyy.com:10025"
else send traffic to
xxx1yyy.com:10002
xxx2yyy.com:10002
xxx1yyy.com:10056
what would be the irule this requirement if i want to put the three servers in one pool and the one server in another pool
- Andrew-F5
Employee
when HTTP_REQUEST { if {[HTTP::uri] contains "12_SERVICE=FILE_URLS" || [HTTP::uri] contains "12_SERVICE=FILE_URLS2"}{ pool $pool1 } pool $pool2 }
Update $pool1 to the name of your pool containing xxx2.yyy.com:10025 and $pool2 to the pool containing xxx1yyy.com:10002
xxx2yyy.com:10002
xxx1yyy.com:10056
Remove the money sign ($) when modifying the name. There is no distinction for HTTP/HTTPS since that depends on the virtual server that you are applying the iRule to. This iRule will work on a port 80 or 443 virtual server.
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