Forum Discussion
prabhat_73172
Nimbostratus
Jan 17, 2011irule to read host from HTTP request and redirect
Hello,
I have BigIP LTM 10.0.1 system that sits in front of a http proxy gateway in the call path of incoming http requests in a ISP environment.
When customer access certain websites via pr...
Chris_Miller
Altostratus
Jan 17, 2011You can do this without setting any variables. That'll help performance a tiny bit.
when HTTP_REQUEST {
log local0. "User requested Host [HTTP::host]"
switch -glob [string tolower [HTTP::host]] {
"*hotmail*" -
"*weather.com*" {
log local0. "[HTTP::host] going directly to [HTTP::host] -- 1.2"
pool internet_pool }
default {
log local0. "[HTTP::host] going through proxy--1.3"
pool proxy_pool }
}
}
What errors were you originally seeing?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
