Forum Discussion
Atif_Malik_1133
Nimbostratus
Nov 10, 2005(re)Setting remote_addr
I saw several posts on how to get the real client ip to be forwarded as a variable. My problem is slightly different I want to reset the variable REMOTE_ADDR to be the real client address. All the iru...
Nov 10, 2005
REMOTE_ADDR is actually part of the CGI specification (Click here).
So, when BIG-IP inserts the REMOTE_ADDR header with your value, it gets to apache and apache says, hummm, I need to supply the value for the client side address in the REMOTE_ADDR environment variable but I see a client suppled HTTP header with that same name. I guess I'll prefix their header with "HTTP_" so that both are maintained.
So, basically, you cannot override standard CGI varables. You'll either need to come up with another name, or live with the auto-renaming that apache is doing.
With that said, Apache is very configurable. I'd be surprised if you couldn't hack the configuration on your webservers to replace the REMOTE_ADDR with another header value. I'm just not very well versed in apache config so I don't know for sure.
-Joe
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
