Welcome! Log In Create A New Profile

Advanced

get first field from an nginx variable

Daniele Melosi
May 06, 2010 09:08AM
Hi All,

i've a variable on nginx with more fields, from phpinfo i can see its
values are:

$HTTP_X_FORWARDED_FOR=192.168.1.3, 10.47.0.5, 94.47.0.6, 10.123.65.181

Is it possible to get only the first fields ?

Thanks in advance

Daniele

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

get first field from an nginx variable

Daniele Melosi May 06, 2010 09:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 307
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