Forum Discussion
xuwen
Aug 27, 2021Cumulonimbus
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/path1/example/" or [string tolower [HTTP::uri]] starts_with "/path2/example/"} {
pool pool-example
} elseif { [string tolower [HTTP::host]] equals "api.example.com" } {
HTTP::header replace "Host" "api.newexample.com"
pool api-newexample-com
} elseif { ([HTTP::method] eq "POST") and ([HTTP::uri] contains "version2/sport1") } {
pool sport_pool
}
}