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.
Thanks
Emilio
- The_Bhattman
Nimbostratus
How aboutwhen HTTP_REQUEST { if { [HTTP::header "X-Forwarded-For"] == "192.168.5.100" } { pool uat_pool } else { pool main_pool } }
- Emilio_104473
Nimbostratus
That worked. I found another one which utilizes the data groups. - hoolio
Cirrostratus
Hi Emilio,
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