Welcome! Log In Create A New Profile

Advanced

Re: geoip_country_code header is deleted when I set another custom header

January 10, 2014 05:57AM
Thanks Ruslan, obviously at the level(http server) that I was setting the mobile header, it didn't use to inherit the geoip header because it was set in a previous level (nginx configuration). I didn't see it. Thanks for your help. What I did for doing it work properly was adding the geoip at the same level, resulting like that:

location / {
proxy_pass http://xx;
access_log /var/log/nginx/xx.access.log menosbasico;
proxy_set_header GEOIP_COUNTRY_CODE $geoip_country_code;
proxy_set_header ismobiletraff $mobile_flag;
}

Thank you very much!
Subject Author Posted

geoip_country_code header is deleted when I set another custom header

MarcPapers January 10, 2014 04:39AM

Re: geoip_country_code header is deleted when I set another custom header

Ruslan Ermilov January 10, 2014 05:40AM

Re: geoip_country_code header is deleted when I set another custom header

MarcPapers January 10, 2014 05:57AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 49
Record Number of Users: 7 on May 23, 2016
Record Number of Guests: 238 on March 17, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready