Forum Discussion
vsgrajput_18926
Nimbostratus
Nov 16, 2015irule to change host and uri from response
I have created below iRule which is working fine with respect to client request
when HTTP_REQUEST {
if { ([HTTP::host] == "abcd.client.com") and ([HTTP::uri] == "/") } {
HTTP::header replace Hos...
vsgrajput_18926
Nimbostratus
Nov 16, 2015For better understanding when HTTP_REQUEST { if { ([HTTP::host] == "abcd.client.com") and ([HTTP::uri] == "/") } { HTTP::header replace Host "abcd.supplier.com" HTTP::uri "/server can/respond/to/this/uri" pool Pool_isupplier } }
==========
when HTTP_RESPONSE { if { [HTTP::header] contains "new.supplier.com" } { HTTP::redirect "abcd.client.com" } }
The request portion is working as expected, need to something like this in response.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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