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!
SubjectAuthorPosted

geoip_country_code header is deleted when I set another custom header

MarcPapersJanuary 10, 2014 04:39AM

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

Ruslan ErmilovJanuary 10, 2014 05:40AM

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

MarcPapersJanuary 10, 2014 05:57AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 60
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready