Forum Discussion

Rodney_Newton_7's avatar
Rodney_Newton_7
Icon for Nimbostratus rankNimbostratus
Jul 26, 2007

HTTPS Redirect Failing

When applying a redirect to an HTTPS virtual I get a failure. HTTP Watch shows ERROR_INTERNET_CONNECTION_RESET. Is there something I am missing regarding redirects for HTTPS?

 

 

 

when HTTP_REQUEST {

 

 

if {[HTTP::uri] == "/"}{

 

HTTP::redirect http://host.domain.com/psp/blabla/?cmd=login

 

log local0. "URI Empty - Redirected to [HTTP::uri]"

 

} else {

 

log local0. [HTTP::uri]

 

}

 

}

 

 

Simply trying to redirect any client that comes in with an empty URI. Also tried HTTP::uri to change it but that did nothing.

 

 

Any help appreciated. Thanks.
  • Typo... irule is...

     

     

    when HTTP_REQUEST {

     

     

    if {[HTTP::uri] == "/"}{

     

    HTTP::redirect https://host.domain.com/psp/blabla/?cmd=login

     

    log local0. "URI Empty - Redirected to [HTTP::uri]"

     

    } else {

     

    log local0. [HTTP::uri]

     

    }

     

    }

     

     

    "https" iRule works fine on the http virtual. Thanks.