Forum Discussion
AngryCat_52750
Feb 28, 2013Nimbostratus
Changing Hostnames and URIs
we are making a service call to an external vendor. We call - internal.apple.com/foo/bar/pear.svc and we make it vendor.example.com/foo/bar/pear.svc with a irule -
when HTTP_REQUEST {
...
What_Lies_Bene1
Feb 28, 2013Cirrostratus
There is, something like this will do exactly what you want (but won't modify other URIs, they must match exactly);
when HTTP_REQUEST {
HTTP::header replace Host "vendor.example.com"
if { [string tolower [HTTP::uri]] equals "/fruits" } {
[HTTP::uri] "/foo/bar/pear.svc" }
}
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects