Can I extract the last IP address in X-Forwarded-For and assign it to a variable

chittis nginx-forum at nginx.us
Sat Jan 23 04:46:02 MSK 2010


Hi, 
   I want to get the last IP address in the X-Forwarded-For header and assign it to a variable. I'm doing this using embeded perl now. Is there
a way I can do this using the map module and regular expressions?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,44627,44627#msg-44627




More information about the nginx mailing list