Forum Discussion
Bertolazzi_7869
Apr 18, 2012Nimbostratus
HTTP Redirect: Hint or an example?
Hi everyone
!
Sorry for
my bad
English.
See if you
can help me, I'm a newbie in F5 and iRules and I search the following:
Redirect
requests ...
Bertolazzi_7869
Apr 18, 2012Nimbostratus
Hi,
The redirection works fine with Nitass code!
Please, tell me if this configuration is correct:
http://www.mydomain.com:8080/ABC redirects to http://www.mydomain.com:8080/DEF and points to the pool pool_def
http://www.mydomain.com:8080/HIJ redirects to http://www.mydomain.com:8080/KLM and points to the pool pool_klm
when HTTP_REQUEST {
if { [HTTP::uri] equals "/abc" } {
HTTP::redirect "http://[HTTP::host]/def"{
"/abc*" {pool pool_def}
}
}
if { [HTTP::uri] equals "/hij" } {
HTTP::redirect "http://[HTTP::host]/klm"{
"/hij*" {pool pool_klm}
}
}
}
tks.
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