Forum Discussion
Vadiraj_95604
Nimbostratus
Apr 18, 2013URI redirection
The traffic on http://url1.us.com:8443/Wireless/Wi...ageService should be forwarded to http://url22.us.com:8443/my/msg/out...ageService.
only host header needs to be changed
i tried the bel...
Kevin_Stewart
Employee
Apr 19, 2013I have to say, unless there's a bug with HTTP::uri in your specific TMOS version, there has to be something else going on between the client and server. Lets try a little logging.
when HTTP_REQUEST {
log local0. "Incoming URI = [HTTP::uri]"
if { ([HTTP::uri] equals "/Wireless/WirelessOutboundMessageService") } {
log local0. "Caught URI and changing"
HTTP::uri "/my/msg/outbound/wireless/WirelessOutboundMessageService"
HTTP::header replace "Host" "url22.us.com:8443"
}
}
when HTTP_RESPONSE {
if { [HTTP::header exists Location] } {
log local0. "redirect to [HTTP::header Location]"
}
}
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