Forum Discussion
port redirection without using irule
Hi,
when application users targets old infra pointing to x.x.y.y:6009 and we need them to be redirected to z.z.x.y:10108 without using iRULE.
is there a way to do it?
Please advise.
6 Replies
- Stanislas_Piro2
Cumulonimbus
Hi,
why without using irule???
you can do it with with Local traffic policies (since version 11.4) or HTTP Class (up to version 11.3)
Stanislas
- alteon_98264
Nimbostratus
can you please provide an example?
Thanks in advance.
- alteon_98264
Nimbostratus
can you please provide an example?
what we require is that everything in the URL remains same except the port
Thanks in advance.
- Stanislas_Piro2
Cumulonimbus
Hi,
- can you please answer my question: why without using irule?
- I proposed 2 solutions based on version... which version is installed?
- can you explain what you mean by "redirect"? do you mean HTTP redirect or pool member with port different than virtual server?
- Alteon is not the best nickname on a F5 forum :-)
- alteon_98264
Nimbostratus
Hi Stanislas,
version details Product BIG-IP VE Version 11.3.0
so the requirement is x.x.y.y:6009/abc/def/login.aspx and we need them to be redirected to z.z.x.y:10108//abc/def/login.aspx.
so there is existing vip with pool members (a.b.c.d:10108 and e.f.g.h.i:10108)
need to get syntax across using TCL or regex to achieve this..
- Stanislas_Piro2
Cumulonimbus
Hi alteon,
you can create a HTTP Class (Profile / Protocol / HTTP Class) with:
- condition : http host equals app.mycompany.com:6009
-
action : redirect
- redirect URL : http://app2.mycompany.com:10108[HTTP::uri]
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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