Forum Discussion

ISPCommunicatio's avatar
ISPCommunicatio
Icon for Nimbostratus rankNimbostratus
Apr 16, 2018

redirect URL according to the path

Hello I'm trying to set some iRule in order to do the following : call towards the root / URL : => forward to node on TCP port 443, HTTPS Call towards the subfolder /synchrony => forward to node on TCP port 8091, HTTP

 

As I'm quite new to iRule, can anyone assist me with this ?

 

1 Reply

  • Create two pools, one for TCP/443 pool members and the other for TCP/8091 pool members, then select based on the requesting URI:

    when HTTP_REQUEST {
        if {[HTTP::uri] equals "/"} {
            pool 443_pool
        } elseif {
            [HTTP::uri] equals "/synchrony"} {
            pool 8091_pool
        }
    }