Forum Discussion
Patrick_Olsen
Nimbostratus
Nov 11, 2011Tomcat
I'm new to iRules and have been doing some research here. I have tried multiple redirect scenarios and they all seem to fail.
Current try looks like this:
when HTTP_REQUEST {...
nitass
Employee
Nov 15, 2011can you try this?
[root@ve1023:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.65.152:http
ip protocol tcp
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "blah" and [string tolower [HTTP::uri]] equals "/manager/status"} {
HTTP::redirect "http://blah"
}
}
}
[root@ve1023:Active] config curl -I http://blah/manager/status
HTTP/1.0 302 Found
Location: http://blah
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
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
