Forum Discussion
Ardie_6003
Jan 13, 2011Nimbostratus
Need help on HTTP Redirection
Hi,
I'm new to the F5. Need some expert advise on this.
I have 2 url.
a) www.x.x
b) mobile.x.x
Both shared the same servers, virtual servers & public IP (don't know...
JRahm
Jan 14, 2011Admin
assuming you have two pools, one for www with members defined with port 80, the other for mobile with members defined with port 84, you can do something like this:
when HTTP_REQUEST {
if { [getfield [string tolower [HTTP::host]] "." 1] eq "www" } {
pool www_pool
} elseif { [getfield [string tolower [HTTP::host]] "." 1] eq "mobile" } {
pool mobile_pool
} else { pool default }
}
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