Forum Discussion
Top Domains Selection
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 below :
*if tarffic is for website www.youtube.com , www.4shared.com or www.rapidshare.com >>>>>> VS will balance it to Pool consisting of my cache servers
*if any other website >>>>>>forward directly to the Gateway router ( to the internet ) & no cashing happens
- hooleylistCirrostratusHi SSHSSH,
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 } } }
- SSHSSH_97332Nimbostratus
- natheCirrocumulusSSHSSH
- hooleylistCirrostratusThat's a great explanation Nathan. One more note: I used URI::host to parse the host name from a fully qualified URL in the URI. If the client is making requests through LTM to a web proxy, they would use a fully qualified URI. Else, if they're going through a transparent proxy, the URI would be relative and you'd want to check for the host name of the request in the host header using [HTTP::host] instead of [URI::host [HTTP::uri]].
Recent Discussions
Related Content
* 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