Forum Discussion
Shlairshe_84486
Nimbostratus
Jan 13, 2015Incorporating a header rewrite for security purposes
Hi All,
I have been able to make the i-rule work for the purpose it is intended for. However, there is one more thing I have not been able to get to work.
when HTTP_REQUEST {
set ...
Brad_Parker
Cirrus
Jan 13, 2015If you TESTSERVER(2) servers are defined as nodes and reachable via the LTM you could just do a rewite with a node selection rather than a redirect.
when HTTP_REQUEST {
set req [string tolower [HTTP::uri]]
if { $req starts_with "/lodi" } {
node 8080
HTTP::uri /lodi/home
}
elseif { $req starts_with "/walking"} {
node 8080
HTTP::uri /BOB/CAT
}
pool Test_Svrtier_Pool
}
Also, I'm not quite sure why you had the
use pool Test_Svrtier_Pool between your IF statements so I put it at the end. Also, unless you are still running BigIP 4.x you don't need the use command.Brad_Parker
Cirrus
Jan 13, 2015Absolutely can be, just use pool .
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