Forum Discussion
Irule not redirecting to /MFProxy
Hi Team,
We have one application having the below four modules:
http://dlcfddevw1v.xyz.com/task serviced by Port 8080 http://dlcfddevw1v.xyz.com/MFProxy/TE serviced by Port 80 http://dlcfddevw1v.xyz.com/MFProxy/SM serviced by Port 80 http://dlcfddevw1v.xyz.com/MFProxy/DM serviced by Port 80
External URL will be for example:
http://abc.xyz.com/task ( working) http://abc.xyz.com/MFProxy/TE (not working) http://abc.xyz.com/MFProxy/SM (not working) http://abc.xyz.com/MFProxy/DM (not working)
Below Irule is in use:
when HTTP_REQUEST { set http_uri [string tolower [HTTP::uri]] if {$http_uri equals "/" } { HTTP::redirect "https://abc.xyz.com/task/" pool abc.xyz.com-pool log local0. "redirected from /"
return
} elseif { $http_uri starts_with "/MFProxy/" } {
pool abc.xyz.com-MFPROXY
return
}
}
Can you suggest please why /MFPROXY is not working ?
Thanks and Regards Parveez
6 Replies
- nathe
Cirrocumulus
Parveez,
Your irule is doing a "string tolower" so it will never match the variable http_uri to /MFProxy.
Also, you may want to add oneconnect to the Virtual server too, see Using an iRule to load balance HTTP requests to multiple pools
Hope this helps,
N
- Parveez_70209
Nimbostratus
Sorry new to this one, so what will be my Irule look like editing the existing ? Kindly suggest.
- nathe
Cirrocumulus
change "} elseif { $http_uri starts_with "/MFProxy/" } {" to "} elseif { $http_uri starts_with "/mfproxy/" } {" - Parveez_70209
Nimbostratus
Hi Nathan, Appreciate your kind help and support, that really worked for me. Thanks and Regards Parveez - nathe
Cirrocumulus
no problem at all, mark up if happy
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