Hi SSHSSH,
Are client's using the LTM virtual as a web proxy or connecting transparently? ie, do clients use a fully qualified URL in the URI like:
GET
http://www.example.com/file.ext?param=value
If so, you can use something like this:
when CLIENT_ACCEPTED {
Save VS default pool name
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
switch [string tolower [URI::host [HTTP::uri]]] {
youtube.com -
www.youtube.com -
4shared.com -
www.4shared.com -
rapidshare.com -
www.rapidshare.com {
pool cache_pool
}
default {
pool $default_pool
}
}
}
Aaron