Forum Discussion
Abe_11636
Sep 14, 2011Cirrus
simple irule not forwarding
this is my irule: (for a vip on 443) when HTTP_REQUEST { if { [HTTP::host] eq "http://aira.coxnet.cox.net"} { HTTP::redirect "https://aira.coxnet.cox.net/airnetProp...
nitass
Sep 15, 2011Employee
pls feel free to revise.
[root@orchid:Active] config b virtual bar443 list
virtual bar443 {
snat automap
destination 172.28.17.88:https
ip protocol tcp
rules myrule
profiles
clientssl
http
tcp
}
[root@orchid:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "aira.coxnet.cox.net"} {
HTTP::redirect "https://aira.coxnet.cox.net/airnetProp[HTTP::uri]"
}
}
}
[root@orchid:Active] config curl -Ik https://aira.coxnet.cox.net/test123
HTTP/1.0 302 Found
Location: https://aira.coxnet.cox.net/airnetProp/test123
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
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