Forum Discussion
SSHSSH_97332
Jan 25, 2012Nimbostratus
Top Domains Selection
i need to do the below : Users router will direct all HTTP traffic to external interface( external vlan ) of my F5 LTM . on this external vlan i have Vs listening for HTTP traffic & i need to do the ...
hooleylist
Jan 25, 2012Cirrostratus
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
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects