Forum Discussion
F5Hopper_28651
Nimbostratus
Dec 18, 2012forward info not redirect it........
I have DEV asking me to setup a irule that Im not sure you can do.
we have requests going to http://www.etc.com/webapi/service.asmx and want me to have http://app.etc.com/service.asmx answer. ...
What_Lies_Bene1
Cirrostratus
Dec 18, 2012This should do it;
when HTTP_REQUEST {
Check for 'bad' URI
if { [string tolower [HTTP::uri]] equals "/webapi/service.asmx" } {
Rewrite 'bad' URI before sending response to server
HTTP::uri "/service.asmx"
}
Check for 'bad' FQDN in HTTP Host header
elseif { [string tolower [HTTP::header "Host"]] equals "www.etc.com" } {
Replace the header using the 'good' FQDN
HTTP::header replace Host "app.etc.com"
Stop processing
return
}
}
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
