Forum Discussion

Chadwick_McInni's avatar
Chadwick_McInni
Icon for Nimbostratus rankNimbostratus
Dec 20, 2006

Convert http to https & then to pool

Please take a look at this. Here's what I'm loooking to do: When someone comes in on 443, and they don't match what we're looking for, then their request should be converted to http and then sent to a pool. Is that possible?

 

I don't want to do a redirect because that will change the host and uri, and we want those to remain the same. Below is what I have for the iRule so far:

 

 

when HTTP_REQUEST {

 

if {[HTTP::uri] starts_with "/foo"}{

 

use pool foo

 

the above will stay https

 

} elseif {[HTTP::uri] matches_regex "^/bar/" } {

 

use pool bar

 

the above will stay https

 

} else {

 

How do I convert everything below caught by the else to http?

 

use pool baz

 

}

 

}

 

 

Thanks,

 

Chad
  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    With a serverssl profile applied to the virtual server, that can be accomplished with the SSL::enable/SSL::disable commands:

     

     

    Here are some posts on the same topic:

     

    Click here

     

    Click here

     

     

    HTH

     

    /deb