Forum Discussion
Thiyagu_163984
Nimbostratus
Aug 26, 2017Difference between the Irules for redirection:
Hello All,
Could you please help me to know is there any functional difference between the following Irules for htpp to https redirection:
HTTP::redirect "https://[HTTP::host][HTTP::uri]"}
and ...
jaikumar_f5
Noctilucent
Aug 27, 2017Hope this also give you some extra understanding on the getfield function.
Also you can playaround with the getfield, something like below.
when HTTP_REQUEST {
set VIP [getfield [HTTP::host] ":" 1]
set a [getfield $VIP "." 1]
set b [getfield $VIP "." 2]
set c [getfield $VIP "." 3]
set d [getfield $VIP "." 4]
log local0. "$VIP - IP, $a $b $c $d"
}
When the VIP is directly accessed,So on the console this would log something like below, where ":" and "." are the delimiters. Hope this clarifies.
Rule /Common/test-rule : 20.30.40.50 - IP, 20 30 40 50Help 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
