get first field from an nginx variable

Daniele Melosi ml at melosi.it
Thu May 6 17:03:32 MSD 2010


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



More information about the nginx mailing list