05-Jun-2022 14:48
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
07-Jun-2022 22:13
There are other URI which are working already, above rewrite rules doesnt work.Appreciate for your support in this regard.
06-Jun-2022 02:58 - edited 06-Jun-2022 22:33
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