Forum Discussion
Rewrite Uri rule doesn't work
Hi Team,
Required your support the rewrite uri rule is not working guide me if am missing anything with the below
Rule type -->Both
Client URI-->/mytest/
Server URI-->https://hji-ecare.apps.xyz.abc-cloud1.itcloud.local.abc.com/
Rule type -->Both
Client URI-->/login/
Server URI-->https://asd-login.apps.xyz.prod-cloud1.itcloud.local.abc.com/
Appreciate for your support please.
Regards
- RafaelAlexanderNimbostratus
First recommendation, don't patch the application with an irule. The challenge will be getting the correct event, probably HTTP_REQUEST_RELEASE since you need to know the pool member selected (that will not be available on the initial http request.) when HTTP_REQUEST_RELEASE { if { [ getfield [HTTP::host] : 1 ] equals "xyz.com" ] } { HTTP::header replace Host [ LB::server addr ] } }
Also, uri is irrelevant since it is not changing. The host header is the only place the FQDN would appear.
iRule was tested and is functional on a lab system Run Your Pool App
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