Forum Discussion
AlbertoCarlone_
Jul 06, 2017Nimbostratus
iRule redirect to another vip with same IP but diffrent port
Hi all,
i need to set an iRule to a VS because we want to balance incoming traffic to a specific pool, but if the request have "/XXX" in the string, the connection has to be redirected to another VS...
- Jul 06, 2017
Hi Alberto
when HTTP_REQUEST{ switch [HTTP::uri] { "/xxxx"{ HTTP::Redirect "http:///" } default {pool pool_SERVICE_PORT } } }
HTH Eben.
eben
Nimbostratus
Hi Alberto
when HTTP_REQUEST{
switch [HTTP::uri] {
"/xxxx"{
HTTP::Redirect "http:///"
}
default {pool pool_SERVICE_PORT }
}
}
HTH Eben.
AlbertoCarlone_
Jul 06, 2017Nimbostratus
yep, thanks.
i was aiming on something different, sadly. ex:
when HTTP_REQUEST {
if {[HTTP::uri] equals "/XXX"} {HTTP::redirect ";}
else { use pool pool_SERVICE_PORT } }
in order to preserve the "standard" structure of the environment.
Thanks a lot.
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