Thanks a lot. This works perfectly. Is $1 always guaranteed to be the last IP in the X-Forwarded-For list? Is it the string that is matched in the $ position in the regular expression? On Fri, Jan 22, 2010 at 7:48 PM, Maxim Dounin <mdounin@mdounin.ru> wrote: > Hello! > > On Fri, Jan 22, 2010 at 08:46:02PM -0500, chittis wrote: > >> I want to get the last IP address in theby chittis - Nginx Mailing List - English
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?by chittis - Nginx Mailing List - English
Figured this - I had two installation of nginx on my machine, and one of them was without perl. So using the right nginx, I could get it to work.by chittis - Nginx Mailing List - English
Hi, I'm getting an unknown directive "perl_set" error - I have in my configuration file : user www-data; worker_processes 1; error_log /var/log/nginx/error.log; pid /var/run/nginx.pid; events { worker_connections 1024; # multi_accept on; } http { include /etc/nginx/mime.types; access_log /var/log/nginx/access.log; sendfileby chittis - Nginx Mailing List - English