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...
Peter_72728
Sep 14, 2011Nimbostratus
HTTP::host only only contains the host (e.g. aira.coxnet.cox.net) not the protocol. So, the expression in your conditional will always evaluate to false.
Incorrect:
if { [HTTP::host] eq "http://aira.coxnet.cox.net"} {
Better?:
if { [HTTP::host] eq "aira.coxnet.cox.net"} {
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