Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: x-forwarded-for and geoip

$
0
0
You could use IF alot of times but IF should only be used as an exit method (if x=y return 503), a better way would be via Lua;

rewrite_by_lua '
if not ngx.var.remote_ip then ngx.var.remote_ip = 'value'; end;
if ................. etc.
';

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>