I am having problems getting the lat, long, and metro_code values from the geoip2 module, but I am not sure if it's a bug or if I am doing something wrong.
Is there a specific way I should be getting these values or is there something else going on?
# nginx-1.7.4
# ngx_http_geoip2_module
# => bd530bc Added support for using multiple maxmind databases
# libmaxminddb => 1.0.1 - 2014-09-03
# geoipupdate-2.0.2 from source with latest db update as of 11-SEP-2014
# Debian 7.6 (wheezy)
http {
...
geoip2 /usr/local/share/GeoIP/GeoIP2-City.mmdb {
$geoip2_city_name city names en;
$geoip2_continent_code default=NA continent code;
$geoip2_continent_name continent names en;
$geoip2_country_code default=US country iso_code;
$geoip2_country_name country names en;
$geoip2_lat location latitude;
$geoip2_long location longitude;
$geoip2_metro_code location metro_code;
$geoip2_time_zone location time_zone;
$geoip2_state_code subdivisions iso_code iso_code;
$geoip2_state_name subdivisions names names en;
}
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
location /geoip/test {
try_files $uri @unicorn;
}
location @unicorn {
error_log /var/log/nginx/unicorn_location.log debug;
proxy_pass http://unicorn;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
# set geoip2 headers
proxy_set_header GEOIP2_CONTINENT_CODE $geoip2_continent_code;
proxy_set_header GEOIP2_CONTINENT_NAME $geoip2_continent_name;
proxy_set_header GEOIP2_COUNTRY_CODE $geoip2_country_code;
proxy_set_header GEOIP2_COUNTRY_NAME $geoip2_country_name;
proxy_set_header GEOIP2_CITY_NAME $geoip2_city_name;
proxy_set_header GEOIP2_LATITUDE $geoip2_latitude;
proxy_set_header GEOIP2_LONGITUDE $geoip2_longitude;
proxy_set_header GEOIP2_METRO_CODE $geoip2_metro_code;
proxy_set_header GEOIP2_TIME_ZONE $geoip2_time_zone;
proxy_set_header GEOIP2_STATE_CODE $geoip2_state_code;
proxy_set_header GEOIP2_STATE_NAME $geoip2_state_name;
}
Everything but latitude, longitude, and metro_code works (all non string return values). I have tried interpolating variables in multiple spots (single/double quotes, set, etc) without luck. Setting default values of anything but quoted longitude/latitude double's causes 500 errors.
# BACKEND REQUEST DATA (missing lat, long, and metro_code, but has location time_zone)
REMOTE_ADDR => 127.0.0.1
REQUEST_METHOD => GET
REQUEST_PATH => /geoip/test
SERVER_PROTOCOL => HTTP/1.0
HTTP_VERSION => HTTP/1.0
HTTP_X_FORWARDED_FOR => 70.112.69.240
HTTP_HOST => geoip2-test
HTTP_X_REAL_IP => 70.112.69.240
HTTP_GEOIP2_CONTINENT_CODE => NA
HTTP_GEOIP2_CONTINENT_NAME => North America
HTTP_GEOIP2_COUNTRY_CODE => US
HTTP_GEOIP2_COUNTRY_NAME => United States
HTTP_GEOIP2_CITY_NAME => Austin
HTTP_GEOIP2_TIME_ZONE => America/Chicago
HTTP_GEOIP2_STATE_CODE => TX
HTTP_GEOIP2_STATE_NAME => Texas
HTTP_CONNECTION => close
HTTP_ACCEPT => */*
HTTP_ACCEPT_LANGUAGE => en-us
HTTP_ACCEPT_ENCODING => gzip, deflate
%> mmdblookup --file /usr/local/share/GeoIP/GeoIP2-City.mmdb --ip 70.112.69.240 country names en
"United States" <utf8_string>
$> mmdblookup --file /usr/local/share/GeoIP/GeoIP2-City.mmdb --ip 70.112.69.240 location latitude
30.320500 <double>
$> mmdblookup --file /usr/local/share/GeoIP/GeoIP2-City.mmdb --ip 70.112.69.240 location metro_code
635 <uint16>
%> nginx -V
nginx version: nginx/1.7.4
built by gcc 4.7.2 (Debian 4.7.2-5)
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --pid-path=/var/run/nginx.pid --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-http_addition_module --with-http_geoip_module --with-http_gzip_static_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --add-module=/root/source/ngx_http_geoip2_module --add-module=/root/source/echo-nginx-module-0.56
%> cat /var/log/nginx/geoip2_debug.log
2014/09/12 01:01:44 [debug] 12303#0: *7 rewrite phase: 3
2014/09/12 01:01:44 [debug] 12303#0: *7 post rewrite phase: 4
2014/09/12 01:01:44 [debug] 12303#0: *7 generic phase: 5
2014/09/12 01:01:44 [debug] 12303#0: *7 generic phase: 6
2014/09/12 01:01:44 [debug] 12303#0: *7 generic phase: 7
2014/09/12 01:01:44 [debug] 12303#0: *7 access phase: 8
2014/09/12 01:01:44 [debug] 12303#0: *7 access phase: 9
2014/09/12 01:01:44 [debug] 12303#0: *7 post access phase: 10
2014/09/12 01:01:44 [debug] 12303#0: *7 try files phase: 11
2014/09/12 01:01:44 [debug] 12303#0: *7 http init upstream, client timer: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 epoll add event: fd:11 op:3 ev:80002005
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "X-Forwarded-For: "
2014/09/12 01:01:44 [debug] 12303#0: *7 http script var: "70.112.69.240"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "
"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "Host: "
2014/09/12 01:01:44 [debug] 12303#0: *7 http script var: "geoip2-stage"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "
"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "X-Real-IP: "
2014/09/12 01:01:44 [debug] 12303#0: *7 http script var: "70.112.69.240"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "
"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "GEOIP2_CONTINENT_CODE: "
2014/09/12 01:01:44 [debug] 12303#0: *7 http script var: "NA"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "
"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "GEOIP2_CONTINENT_NAME: "
2014/09/12 01:01:44 [debug] 12303#0: *7 http script var: "North America"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "
"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "GEOIP2_COUNTRY_CODE: "
2014/09/12 01:01:44 [debug] 12303#0: *7 http script var: "US"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "
"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "GEOIP2_COUNTRY_NAME: "
2014/09/12 01:01:44 [debug] 12303#0: *7 http script var: "United States"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "
"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "GEOIP2_CITY_NAME: "
2014/09/12 01:01:44 [debug] 12303#0: *7 http script var: "Austin"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "
"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: ""
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: ""
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: ""
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: ""
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: ""
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: ""
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "GEOIP2_TIME_ZONE: "
2014/09/12 01:01:44 [debug] 12303#0: *7 http script var: "America/Chicago"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "
"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "GEOIP2_STATE_CODE: "
2014/09/12 01:01:44 [debug] 12303#0: *7 http script var: "TX"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "
"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "GEOIP2_STATE_NAME: "
2014/09/12 01:01:44 [debug] 12303#0: *7 http script var: "Texas"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "
"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: "Connection: close
"
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: ""
2014/09/12 01:01:44 [debug] 12303#0: *7 http script copy: ""
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "Accept-Encoding: gzip, deflate"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "Accept-Language: en-us"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "Cache-Control: max-age=0"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "DNT: 1"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D257 Safari/9537.53"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header:
"GET /geoip/test HTTP/1.0
X-Forwarded-For: 70.112.69.240
Host: geoip2-stage
X-Real-IP: 70.112.69.240
GEOIP2_CONTINENT_CODE: NA
GEOIP2_CONTINENT_NAME: North America
GEOIP2_COUNTRY_CODE: US
GEOIP2_COUNTRY_NAME: United States
GEOIP2_CITY_NAME: Austin
GEOIP2_TIME_ZONE: America/Chicago
GEOIP2_STATE_CODE: TX
GEOIP2_STATE_NAME: Texas
Connection: close
Accept-Encoding: gzip, deflate
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us
Cache-Control: max-age=0
DNT: 1
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D257 Safari/9537.53
"
2014/09/12 01:01:44 [debug] 12303#0: *7 http cleanup add: 0000000002657258
2014/09/12 01:01:44 [debug] 12303#0: *7 get rr peer, try: 1
2014/09/12 01:01:44 [debug] 12303#0: *7 socket 12
2014/09/12 01:01:44 [debug] 12303#0: *7 epoll add connection: fd:12 ev:80002005
2014/09/12 01:01:44 [debug] 12303#0: *7 connect to unix:/var/www/geoip2-stage/shared/tmp/sockets/unicorn.socket, fd:12 #8
2014/09/12 01:01:44 [debug] 12303#0: *7 connected
2014/09/12 01:01:44 [debug] 12303#0: *7 http upstream connect: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 posix_memalign: 00000000026096A0:128 @16
2014/09/12 01:01:44 [debug] 12303#0: *7 http upstream send request
2014/09/12 01:01:44 [debug] 12303#0: *7 chain writer buf fl:1 s:692
2014/09/12 01:01:44 [debug] 12303#0: *7 chain writer in: 0000000002657290
2014/09/12 01:01:44 [debug] 12303#0: *7 writev: 692
2014/09/12 01:01:44 [debug] 12303#0: *7 chain writer out: 0000000000000000
2014/09/12 01:01:44 [debug] 12303#0: *7 event timer add: 12: 60000:1410501764404
2014/09/12 01:01:44 [debug] 12303#0: *7 http finalize request: -4, "/geoip/test?" a:1, c:3
2014/09/12 01:01:44 [debug] 12303#0: *7 http request count:3 blk:0
2014/09/12 01:01:44 [debug] 12303#0: *7 http finalize request: -4, "/geoip/test?" a:1, c:2
2014/09/12 01:01:44 [debug] 12303#0: *7 http request count:2 blk:0
2014/09/12 01:01:44 [debug] 12303#0: *7 post event 000000000262D3B8
2014/09/12 01:01:44 [debug] 12303#0: *7 post event 000000000262D420
2014/09/12 01:01:44 [debug] 12303#0: *7 delete posted event 000000000262D420
2014/09/12 01:01:44 [debug] 12303#0: *7 http upstream request: "/geoip/test?"
2014/09/12 01:01:44 [debug] 12303#0: *7 http upstream dummy handler
2014/09/12 01:01:44 [debug] 12303#0: *7 delete posted event 000000000262D3B8
2014/09/12 01:01:44 [debug] 12303#0: *7 http run request: "/geoip/test?"
2014/09/12 01:01:44 [debug] 12303#0: *7 http upstream check client, write event:1, "/geoip/test"
2014/09/12 01:01:44 [debug] 12303#0: *7 http upstream recv(): -1 (11: Resource temporarily unavailable)
2014/09/12 01:01:44 [debug] 12303#0: *7 post event 0000000002613410
2014/09/12 01:01:44 [debug] 12303#0: *7 post event 000000000262D420
2014/09/12 01:01:44 [debug] 12303#0: *7 delete posted event 000000000262D420
2014/09/12 01:01:44 [debug] 12303#0: *7 http upstream request: "/geoip/test?"
2014/09/12 01:01:44 [debug] 12303#0: *7 http upstream dummy handler
2014/09/12 01:01:44 [debug] 12303#0: *7 delete posted event 0000000002613410
2014/09/12 01:01:44 [debug] 12303#0: *7 http upstream request: "/geoip/test?"
2014/09/12 01:01:44 [debug] 12303#0: *7 http upstream process header
2014/09/12 01:01:44 [debug] 12303#0: *7 malloc: 0000000002657830:4096
2014/09/12 01:01:44 [debug] 12303#0: *7 recv: fd:12 4096 of 4096
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy status 200 "200 OK"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "Date: Fri, 12 Sep 2014 06:01:44 GMT"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "Status: 200 OK"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "Connection: close"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "Access-Control-Allow-Origin: *"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "Access-Control-Allow-Methods: *"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "Content-Type: application/json"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "Content-Length: 12365"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "ETag: "a0be9300afe71f1230d8b313182f9241""
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "Cache-Control: max-age=0, private, must-revalidate"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "X-Request-Id: 95a2c477-20c3-4ca7-b371-9c7f386ce6fe"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header: "X-Runtime: 0.015657"
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy header done
2014/09/12 01:01:44 [debug] 12303#0: *7 posix_memalign: 0000000002658840:4096 @16
2014/09/12 01:01:44 [debug] 12303#0: *7 HTTP/1.1 200 OK
Server: nginx/1.7.4
Date: Fri, 12 Sep 2014 06:01:44 GMT
Content-Type: application/json
Content-Length: 12365
Connection: keep-alive
Status: 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: *
ETag: "a0be9300afe71f1230d8b313182f9241"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 95a2c477-20c3-4ca7-b371-9c7f386ce6fe
X-Runtime: 0.015657
2014/09/12 01:01:44 [debug] 12303#0: *7 write new buf t:1 f:0 00000000026588B0, pos 00000000026588B0, size: 404 file: 0, size: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 http write filter: l:0 f:0 s:404
2014/09/12 01:01:44 [debug] 12303#0: *7 http cacheable: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 http proxy filter init s:200 h:0 c:0 l:12365
2014/09/12 01:01:44 [debug] 12303#0: *7 http upstream process upstream
2014/09/12 01:01:44 [debug] 12303#0: *7 pipe read upstream: 1
2014/09/12 01:01:44 [debug] 12303#0: *7 pipe preread: 3718
2014/09/12 01:01:44 [debug] 12303#0: *7 input buf #0
2014/09/12 01:01:44 [debug] 12303#0: *7 malloc: 0000000002647290:4096
2014/09/12 01:01:44 [debug] 12303#0: *7 readv: 1:4096
2014/09/12 01:01:44 [debug] 12303#0: *7 pipe recv chain: 4096
2014/09/12 01:01:44 [debug] 12303#0: *7 input buf #1
2014/09/12 01:01:44 [debug] 12303#0: *7 malloc: 00000000026482A0:4096
2014/09/12 01:01:44 [debug] 12303#0: *7 readv: 1:4096
2014/09/12 01:01:44 [debug] 12303#0: *7 pipe recv chain: 4096
2014/09/12 01:01:44 [debug] 12303#0: *7 input buf #2
2014/09/12 01:01:44 [debug] 12303#0: *7 malloc: 00000000026492B0:4096
2014/09/12 01:01:44 [debug] 12303#0: *7 readv: 1:4096
2014/09/12 01:01:44 [debug] 12303#0: *7 pipe recv chain: 455
2014/09/12 01:01:44 [debug] 12303#0: *7 readv: 1:3641
2014/09/12 01:01:44 [debug] 12303#0: *7 pipe recv chain: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 pipe buf in s:1 t:1 f:0 0000000002657830, pos 00000000026579AA, size: 3718 file: 0, size: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 pipe buf in s:1 t:1 f:0 0000000002647290, pos 0000000002647290, size: 4096 file: 0, size: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 pipe buf in s:1 t:1 f:0 00000000026482A0, pos 00000000026482A0, size: 4096 file: 0, size: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 pipe buf free s:0 t:1 f:0 00000000026492B0, pos 00000000026492B0, size: 455 file: 0, size: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 pipe length: 455
2014/09/12 01:01:44 [debug] 12303#0: *7 input buf #3
2014/09/12 01:01:44 [debug] 12303#0: *7 pipe write downstream: 1
2014/09/12 01:01:44 [debug] 12303#0: *7 pipe write downstream flush in
2014/09/12 01:01:44 [debug] 12303#0: *7 http output filter "/geoip/test?"
2014/09/12 01:01:44 [debug] 12303#0: *7 http copy filter: "/geoip/test?"
2014/09/12 01:01:44 [debug] 12303#0: *7 http postpone filter "/geoip/test?" 00000000026577F8
2014/09/12 01:01:44 [debug] 12303#0: *7 write old buf t:1 f:0 00000000026588B0, pos 00000000026588B0, size: 404 file: 0, size: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 write new buf t:1 f:0 0000000002657830, pos 00000000026579AA, size: 3718 file: 0, size: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 write new buf t:1 f:0 0000000002647290, pos 0000000002647290, size: 4096 file: 0, size: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 write new buf t:1 f:0 00000000026482A0, pos 00000000026482A0, size: 4096 file: 0, size: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 write new buf t:1 f:0 00000000026492B0, pos 00000000026492B0, size: 455 file: 0, size: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 http write filter: l:0 f:0 s:12769
2014/09/12 01:01:44 [debug] 12303#0: *7 http write filter limit 0
2014/09/12 01:01:44 [debug] 12303#0: *7 posix_memalign: 0000000002654940:256 @16
2014/09/12 01:01:44 [debug] 12303#0: *7 malloc: 000000000265B290:16384
2014/09/12 01:01:44 [debug] 12303#0: *7 SSL buf copy: 404
2014/09/12 01:01:44 [debug] 12303#0: *7 SSL buf copy: 3718
2014/09/12 01:01:44 [debug] 12303#0: *7 SSL buf copy: 4096
2014/09/12 01:01:44 [debug] 12303#0: *7 SSL buf copy: 4096
2014/09/12 01:01:44 [debug] 12303#0: *7 SSL buf copy: 455
2014/09/12 01:01:44 [debug] 12303#0: *7 http write filter 0000000000000000
2014/09/12 01:01:44 [debug] 12303#0: *7 http copy filter: -2 "/geoip/test?"
2014/09/12 01:01:44 [debug] 12303#0: *7 pipe write downstream done
2014/09/12 01:01:44 [debug] 12303#0: *7 event timer: 12, old: 1410501764404, new: 1410501764423
2014/09/12 01:01:44 [debug] 12303#0: *7 http upstream exit: 0000000000000000
2014/09/12 01:01:44 [debug] 12303#0: *7 finalize http upstream request: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 finalize http proxy request
2014/09/12 01:01:44 [debug] 12303#0: *7 free rr peer 1 0
2014/09/12 01:01:44 [debug] 12303#0: *7 close http upstream connection: 12
2014/09/12 01:01:44 [debug] 12303#0: *7 free: 00000000026096A0, unused: 48
2014/09/12 01:01:44 [debug] 12303#0: *7 event timer del: 12: 1410501764404
2014/09/12 01:01:44 [debug] 12303#0: *7 reusable connection: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 http upstream temp fd: -1
2014/09/12 01:01:44 [debug] 12303#0: *7 http output filter "/geoip/test?"
2014/09/12 01:01:44 [debug] 12303#0: *7 http copy filter: "/geoip/test?"
2014/09/12 01:01:44 [debug] 12303#0: *7 http postpone filter "/geoip/test?" 00007FFF93077FA0
2014/09/12 01:01:44 [debug] 12303#0: *7 write new buf t:0 f:0 0000000000000000, pos 0000000000000000, size: 0 file: 0, size: 0
2014/09/12 01:01:44 [debug] 12303#0: *7 http write filter: l:1 f:0 s:0
2014/09/12 01:01:44 [debug] 12303#0: *7 http write filter limit 0
2014/09/12 01:01:44 [debug] 12303#0: *7 SSL to write: 12769
2014/09/12 01:01:44 [debug] 12303#0: *7 SSL_write: 12769
2014/09/12 01:01:44 [debug] 12303#0: *7 http write filter 0000000000000000
2014/09/12 01:01:44 [debug] 12303#0: *7 http copy filter: 0 "/geoip/test?"
2014/09/12 01:01:44 [debug] 12303#0: *7 http finalize request: 0, "/geoip/test?" a:1, c:1
2014/09/12 01:01:44 [debug] 12303#0: *7 set http keepalive handler
2014/09/12 01:01:44 [debug] 12303#0: *7 http close request
2014/09/12 01:01:44 [debug] 12303#0: *7 http log handler
2014/09/12 01:01:44 [debug] 12303#0: *7 free: 00000000026492B0
2014/09/12 01:01:44 [debug] 12303#0: *7 free: 00000000026482A0
2014/09/12 01:01:44 [debug] 12303#0: *7 free: 0000000002647290
2014/09/12 01:01:44 [debug] 12303#0: *7 free: 0000000002657830
2014/09/12 01:01:44 [debug] 12303#0: *7 free: 0000000002655810, unused: 2
2014/09/12 01:01:44 [debug] 12303#0: *7 free: 0000000002656820, unused: 8
2014/09/12 01:01:44 [debug] 12303#0: *7 free: 0000000002658840, unused: 2090
2014/09/12 01:01:44 [debug] 12303#0: *7 free: 00000000025E3950
2014/09/12 01:01:44 [debug] 12303#0: *7 hc free: 0000000000000000 0
2014/09/12 01:01:44 [debug] 12303#0: *7 hc busy: 0000000000000000 0
2014/09/12 01:01:44 [debug] 12303#0: *7 free: 000000000265B290
2014/09/12 01:01:44 [debug] 12303#0: *7 tcp_nodelay
2014/09/12 01:01:44 [debug] 12303#0: *7 reusable connection: 1
2014/09/12 01:01:44 [debug] 12303#0: *7 event timer add: 11: 30000:1410501734423