Forum Discussion
Gill_32697
Nimbostratus
Oct 28, 2014Redirect URL to Node
I need to redirect about 12 different URL's to there perspective node. For example.... If URL contains CDs node 10.10.10.10 ! if URL contains Tapes node 10.10.10.11 ! If URL contains Records node 10.10.10.12 ! and so on....what is the most effective iRule that would allow me to add, edit or remove rediects as needed?
3 Replies
- R_Eastman_13667Historic F5 Account
Check this link out https://devcentral.f5.com/articles/irules-101-05-selecting-pools-pool-members-and-nodes
when HTTP_REQUEST { if { [HTTP::uri] contains "CDs" } { node 10.10.10.10 80 } elseif { [HTTP::uri] contains "Tapes" } { node 10.10.10.11 80 } else { pool default_pool } }- someguy_126006
Nimbostratus
If you have many URLs it might be good to leverage a data-group to maintain the mappings.
- Gill_32697
Nimbostratus
Ok, thank you.
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