when HTTP_REQUEST { # Grab the 1st folder after the hostname set lbfolder [string tolower [URI::path [HTTP::uri] 1 1]] # Strip out the "/" set lbfolder pool_[string trim $lbfolder "/"] # log local0. "testing01 $lbfolder" if { [catch {pool $lbfolder} exc] } { # If a client sends a uri that does not match a pool, send to default pool or throw message #pool default HTTP::respond 200 content "No matching pool for that URI" persist cookie insert pr_cookie_insert } }