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 web...
dennypayne
Employee
May 20, 2009First thing is if you aren't offloading SSL, you won't be able to do this.
As long as you are, then this should work:
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"
}
}
I would not use the log in production if possible, only for debugging.
Denny
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