Forum Discussion
hoejenry_36846
Nimbostratus
Apr 24, 2007Cached webserver header
Our website is behind a reverse proxy server so all the users are coming from one IP address.
I was told that if I setup the rule to key in on the http header: "x_http_forwarded_for", that...
hoolio
Cirrostratus
May 21, 2007Are you wanting to insert a custom HTTP header with the client IP address in responses before they are sent to the pool? Or are you wanting to select a pool based on the value of an HTTP header already in the client request?
To do the former, configure the following for the pool:
X-Forwarded-For: ${client_addr}
To do the latter, you could create a class containing the network/mask of the clients you want to route specially, and then use something like this for the rule:
class my_hosts_networks_class {
network 10.20.30.0 mask 255.255.255.0
host 10.1.1.1
}
if (http_header("x_http_forwarded_for")) one of my_hosts_networks_class {
use pool special_pool
}
else {
use pool main_pool
}
You can check the BIG-IP Reference Guide for your version for more examples:Click here
Aaron
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