Thanks John. As you suggest, GeoIP variables don't work when passed to rewrite. I exposed mine using proxy_pass_header (instead of fastcgi_param) and it works.by bquiat - How to...
Trying to use GEOIP with nginx. nginx is configured --with-http_geoip_module and Maxmind free db is installed. I have tried two approaches, both fail. Approach 1: In http section add: geoip_country /root/GEOIP/GeoIP.dat; #path to geo db Then try to use $geoip_country_code in server section, for example: rewrite ^/(.*)$ http://$host:81/$1?country=$geoip_country_code permanent;by bquiat - How to...