Forum Discussion

DAVID_ROMERO_15's avatar
DAVID_ROMERO_15
Icon for Nimbostratus rankNimbostratus
Oct 17, 2018

APM Pool assign based on host header

Hello,

I have a scenario where users may hit one VIP for a number of different URLs. I'd like the APM to authenticate the users just for some host, therefore, I would like to execute an access policy depending on host header. Something like this:

when HTTP_REQUEST {
    switch [HTTP::host] {
    "www.XXX.com" {
        ACCESS POLICY XXX
        pool Pool_XXX
    }
    "www.YYY.com" {
        pool Pool_YYY
    }
    "www.ZZZ.com" {
         ACCESS POLICY ZZZ
         pool Pool_ZZZ
     }
    }
}

`

How could I select access policies by host header?

Thanks, best regards.