F5 irule

when HTTP_REQUEST {set host [HTTP::host]if {$host equals " www.123.com"}
{ pool 80_pool }else {$host equals " www.abc.com"}
{ pool 8080_pool }}


when HTTP_REQUEST {
set host [HTTP::host]if {$host equals " test2.ebdoor.com"}{
pool test2
}else {$host equals " test3.ebdoor.com"}{
pool test3
}else {$host equals " test1.ebdoor.com"}{
pool test1
}
}

when HTTP_REQUEST {
set host [HTTP::host]
if {$host equals "test2.ebdoor.com"}{
pool test2
}else if{$host equals "test3.ebdoor.com"}{
pool test3
}
}

when HTTP_REQUEST {
set host [HTTP::host]
if {$host equals "test2.ebdoor.com"}{
pool test2
}elseif {$host equals "test3.ebdoor.com"}{
pool test3
}
}

if { $tmm_apm_uri_path equals "/vpn" } {
HTTP::respond 302 Location "/vpn/index.html"
return
}
elseif { $tmm_apm_uri_path equals "/vpn/index.html" }
{
HTTP::respond 200 content "/vpn/"
return
}

猜你喜欢

转载自www.cnblogs.com/sfqas/p/12181129.html