Forum Discussion
Randy_Johnson_1
Nimbostratus
May 20, 2009(should be) simple request ?
Hello, Group-
I'm pretty new to iRules, so I'm a bit gunshy on this.
Can anyone give me some help on what seems a pretty simple rule ?
We have two locations, providing webservices to our customers. I want to be able to send a redirect when a customer requests https://service1.company.com/services/service.asmx so that the customer is redirected to https://service2.company.com/services/service.asmx
I'd also like to log some diagnostics on this, just in case.
Anybody got something quick and dirty ?
Thanks, all !
- dennypayne
Employee
First thing is if you aren't offloading SSL, you won't be able to do this.when HTTP_REQUEST { if { ([HTTP::host] eq "service1.company.com") && ([HTTP::uri] eq "/services/service.asmx") } { HTTP::redirect "https://service2.company.com/services/service.asmx" log local0. "Whatever you want to log here" } }
- Randy_Johnson_1
Nimbostratus
Thanks, Denny - - dennypayne
Employee
Hmm...yes I don't think POST's "survive" redirects well in a lot of cases.
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