Irule snippets
Jump to navigation
Jump to search
No paths
when HTTP_REQUEST {
HTTP::host "api.dexample.com"
pool mypool
}
using path based
when HTTP_REQUEST {
switch -glob -- [string tolower [HTTP::path]] {
"some/path/*" {
HTTP::host "api.example.com"
pool mypool
}
default {
log local0. "Hit default for [HTTP::uri]"
HTTP::host "api.example.com"
pool mypool
}
}
}