Forum Discussion
WUM_113639
Nimbostratus
Nov 09, 2010redirect uri /mobilet/ to an inside node
Hi,
We need help in creating an iRule for below requirement.
forward a HTTP request to a inside node, whereas the host is associated on the same BIGIP unit inside a different pool and that pool is also associated with a different Virtual Server.
What have configured the following iRule but we are failing to achieve the desired result.
rule HTTP-IRULE {
when HTTP_REQUEST {
{[HTTP::uri] equals "/mobilet/*"}
{HTTP::redirect "https://[ip::10.17.60.244/[HTTP::uri]"}
}
}
Please, help!
WUM
2 Replies
- Chris_Miller
Altostratus
Here's a great overview:
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/130/iRules-101--05--Selecting-Pools-Pool-Members-and-Nodes.aspx
You'll want to use either the "node" or "pool member" commands.when HTTP_REQUEST { if { [HTTP::uri] contains "/mobilet/" } { node 1.1.1.1 80 } }
That rule would send any request containing "/mobilet/" to server 1.1.1.1 port 80. - JRahm
Admin
You should use pool member ahead of node when possible, stats aren't counted for the node command, which can skew your LB algorithms (and trend data if you use it)
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
