Answer the question
In order to leave comments, you need to log in
What is returned in the header if there is no client address in the GeoIP databases?
The nginx docs describe the answer options:
$geoip_country_code - two-letter country code, for example, "RU", "US".
$geoip_country_code3 - three-letter country code, for example, "RUS", "USA".
$geoip_country_name - the (verbose) name of the country, for example, "Russian Federation", "United States", &c.
Answer the question
In order to leave comments, you need to log in
Nothing will be included in the response. Because $geoip_country_code will return false, then nginx simply won't pass a header that doesn't have a value.
Here a person almost broke his head because of this: serverfault.com/questions/463971/httpgeoipmodule-geoip-country-code-is-blank :)
And what's stopping you from going to which thread 192.168 and see what it returns?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question