URL Based redirection

Geeks,

Below is my current setup

Virtual Server (IP 10.100.100.100)

Real Servers IP RND7 ( IP 10.100.100.1) all Https request for app with Domain Name RND14( IP 10.100.100.2) all Https request for app with Domain Name RND8 ( IP 10.100.100.3) all the http request for app with abc.com RND15 ( IP 10.100.100.4) all the http request for app with abc.com

I am having one requirement that Virutal server ( IP 10.100.100.100) should forward all the request to RND7 (10.100.100.1) and RND14 ( 10.100.100.2) for the under mentioned domain names & all other request should be forwarded to RND8 (10.100.100.3) and RND15(10.100.100.4). Kindly share your valuable suggestions-

A)https://www.abc.com/xyz/ B)https://www.abc.com/dhl C)https://www.hll.abc.com/ghi/

Try this:

pool_A = 10.100.100.1 and 10.100.100.2

pool_B = 10.100.100.3 and 10.100.100.4

when HTTP_REQUEST {
    switch -glob [string tolower [HTTP::host][HTTP::uri]] {
        "www.abc.com/xyz/*" -
        "www.abc.com/dhl*" -
        "www.hll.abc.com/ghi/*" { pool pool_A }
        default { pool pool_B }
    }
}

Thanks kelvin…

I am having one doubt that HTTP_REQUEST triggers an iRULE whenever the system receives an HTTP request but my request is for HTTPS URLS..

Does SSL certificate also required on the F5 to be uploaded for this request…please respond…

Does SSL certificate also required on the F5 to be uploaded for this request…please respond…

If terminate the SSL traffic at the F5 you only need one certificate in the virtual server (client). If you also encrypt the traffic to the backend (the two pools) you need to add a certificate to the server setting of the virtual server.

Or what do you mean exact???

Sailemor…requested you to please read my requirement above mentioned…

I´m not sure if there is any different between HTTP and HTTPS requests in the iRule coding. If you search a little bit you find some threads in which some other people ask for this one. The answers are everytime that they should use “HTTP_REQUEST”. Have you tried my way?

I am having one doubt that HTTP_REQUEST triggers an iRULE whenever the system receives an HTTP request but my request is for HTTPS URLS..

HTTP_REQUEST will be triggered for both http and https (in case of ssl offloading).

Does SSL certificate also required on the F5 to be uploaded for this request

yes, clientssl profile is needed for ssl offloading (i.e. certificate and key are required).

I am having one doubt that HTTP_REQUEST triggers an iRULE whenever the system receives an HTTP request but my request is for HTTPS URLS..

HTTP_REQUEST will be triggered for both http and https (in case of ssl offloading).

Does SSL certificate also required on the F5 to be uploaded for this request

yes, clientssl profile is needed for ssl offloading (i.e. certificate and key are required).

thanks nitass for clarifying this…really helpful…

thanks nitass for clarifying this…really helpful…

Nitass..servert team is having certificate in .kdb format available.can we convert the same to .key & .cert format..

Nitass..servert team is having certificate in .kdb format available.can we convert the same to .key & .cert format..

servert team is having certificate in .kdb format available.can we convert the same to .key & .cert format..

i never used kdb format. is keyman able to convert?

keyman