Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Rewrite Uri rule doesn't work

ishhyd82
Nimbostratus
Nimbostratus

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

 

 

 

2 REPLIES 2

There are other URI which are working already, above rewrite rules doesnt work.Appreciate for your support in this regard.

 

 

RafaelAlexander
Nimbostratus
Nimbostratus

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