Welcome! Log In Create A New Profile

Advanced

Проблема с geoip_module

dimkalinux
December 30, 2010 07:16AM
Подключил в nginx.conf maxmind geoip в .dat формате

http {
....
geoip_country /etc/nginx/GeoIP.dat;
geoip_city /etc/nginx/GeoLiteCity.dat;

include *.conf.
}

Потом в подключаемом conf в
server {
...
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_redirect off;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-GEO $geo;
proxy_set_header X-GEO-CITY $geoip_city;


proxy_set_header Range "";

proxy_connect_timeout 320;
proxy_send_timeout 320;
proxy_read_timeout 320;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}
}

на сервере в apache_headers() есть всё, кроме X-GEO-CITY. Если
X-GEO-CITY выставить в 1 - приходит и он.

В чём может быть проблема?

nginx version: nginx/0.8.54
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
configure arguments: --user=nginx --group=nginx
--prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx
--conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/lib/nginx/tmp/client_body
--http-proxy-temp-path=/var/lib/nginx/tmp/proxy
--http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi
--pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx
--without-http_charset_module --without-http_userid_module
--without-http_fastcgi_module --without-http_memcached_module
--with-http_realip_module --with-http_gzip_static_module
--with-http_stub_status_module --with-http_geoip_module
--with-http_flv_module --with-file-aio
--add-module=/usr/src/redhat/SOURCES/masterzen-nginx-upload-progress-module-c740674
--add-module=/usr/src/redhat/SOURCES/nginx_upload_module-2.0.12
--with-cc-opt='-O2 -g -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables'


--
dimka-linux,
Jabber: dimkalinux@gmail.com
Public key: 8B5EDD83

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Проблема с geoip_module

dimkalinux December 30, 2010 07:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 216
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready