Forum Discussion
puluck
Cirrus
Jan 13, 2018HTTP proxy
Hello All,
we wanted to write irule for proxy the traffic to third party URL while client Header remains the same .
URL will be accessed by client ,based on URI part ( /London) it should s...
kolom
Altostratus
Jan 13, 2018Try to use "Rewrite Profile" by creating a new one in "URI translation mode " and define client and server URIs in the rule as the following:
client URI: http://www.abc.com/London
server URI : https://dev.example.com
or you can use this iRule
when when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] eq "www.abc.com")
&& ([string tolower [HTTP::uri]] contains "/london") } {
HTTP::header replace "Host" "dev.example.com"
}
}
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
