Skip to content

Instantly share code, notes, and snippets.

when HTTP_REQUEST {
if {[class match [HTTP::uri] contains dst_clients_dg]} {
pool [string range [virtual] 8 end][class match -value [HTTP::uri] contains dst_clients_dg]
} else {
HTTP::respond 404
}
}
ltm virtual thriv-prod-https {
destination X.X.X.X:https
mw = []
(1..mw_servers).each {
|name|
name.to_s
servername = "pv" + client_id + "mwl0" + name + ".npc.lan"
mw.push(servername)
}