Welcome! Log In Create A New Profile

Advanced

Howto set variable base on header content

Vincent MAUGE
July 07, 2010 09:44AM
Hey,

I get nginx as reverse proxy. I want to set a variable base on
X-Forwarded-For like I can do with geo module. What is the proper way
to do that ?
The purpose is to change some behavior base on the original client
even if he is behind a proxy. I need to be able to set two different
behavior for two different original IP even if the use the same proxy.
Currently with geo module, I can only change the behavior if the
source ip in the tcp connection is different.

Regards,

Vincent

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Howto set variable base on header content

Vincent MAUGE July 07, 2010 09:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready