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...
richard_77048
Sep 14, 2011Nimbostratus
Crap. I had two examples there but one of them got lost...
The first one was the blanket redirect all traffic to HTTPS:
when HTTP_REQUEST {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
The modification to it was the addition of the HTTP host check:
when HTTP_REQUEST {
if {[HTTP::host] equals "aira.coxnet.cox.net" } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
Richard
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