Need a help with irule - Pool Selection

Hi,

Need a help with the irule, i have a https://xyz.example.com going to 10.10.10.10 pool and https://xyz.example.com:8443 going to another pool. how can we achieve this?

Regards

Hi,

You can use the following irule :

when HTTP_REQUEST {
    switch [HTTP::host] {
        "xyz.example.com:8443" {
            pool x
        }
        "xyz.example.com" {
            pool y
        }
        default {
            reject
        }
    }
}

Hi,

You can use the following irule :

when HTTP_REQUEST {
    switch [HTTP::host] {
        "xyz.example.com:8443" {
            pool x
        }
        "xyz.example.com" {
            pool y
        }
        default {
            reject
        }
    }
}

it worked for me but did not fulfull my requirement :frowning:

it worked for me but did not fulfull my requirement :frowning:

What are your requirements ?

What are your requirements ?

Hi,

Why do you need an irule.

create two virtual servers:

  • one on port 443 with default pool x
  • the other on port 8443 with default pool y