Forum Discussion
Emilio_104473
Nimbostratus
Feb 14, 2009Redirect based on IP within X_FORWARDED_FOR
Hi,
I am looking to find the way to redirect requests made to a virtual server to be redirected to a another Pool, based on the IP address within X_forwarded_for header.
...
The_Bhattman
Nimbostratus
Feb 15, 2009How about
when HTTP_REQUEST {
if { [HTTP::header "X-Forwarded-For"] == "192.168.5.100" } {
pool uat_pool
} else {
pool main_pool
}
}
hope this helps
CB
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