Если кому-то еще интересно, котенку не хватало
set_real_ip_from 107.167.96.0/19; Все остальные opera-mini сети были описаны и real_ip_recursive для них помогал. > On 05 Jul 2016, at 15:12, Vladimir Sopot <[email protected]> wrote: > > Из того, что удалось поймать - нет, не помогло. > Приезжает “x-forwarded-for” (именно в таком регистре). > > >> On 05 Jul 2016, at 14:54, Fedor Dikarev <[email protected]> wrote: >> >> И можно поделиться с общественностью: >> а) помогло ли включение real_ip_recursive? >> б) что приезжало в заголовке X-Forwarded-For? >> >> On 04/07/16 15:28, Vladimir Sopot wrote: >>> Внезапно, подозреваю отсутствие в конфиге real_ip_recursive on; >>> Сегодня буду тестировать. >>> >>>> On 02 Jul 2016, at 19:24, Vladimir Sopot <[email protected]> wrote: >>>> >>>> Да, конечно, есть и real_ip_header X-Forwarded-For; >>>> В конфиге есть ещё куча других сетей оперы и с ними, кажется, нет проблем. >>>> >>>>> On 02 Jul 2016, at 13:39, Fedor Dikarev <[email protected]> wrote: >>>>> >>>>> Opera использует заголовок X-Forwarded-For для передачи адреса клиента, >>>>> а не X-Real-IP как nginx ожидает по-умолчанию. Добавьте: >>>>>> real_ip_header X-Forwarded-For; >>>>> >>>>>> http://nginx.org/ru/docs/http/ngx_http_realip_module.html#real_ip_header >>>>> >>>>> >>>>> 02.07.16 12:45, Vladimir Sopot пишет: >>>>>> Привет! >>>>>> >>>>>> В nginx.conf есть >>>>>> >>>>>> set_real_ip_from 185.26.180.0/22; >>>>>> fastcgi_param REMOTE_ADDR $remote_addr; >>>>>> >>>>>> Но при этом до php-fpm доходит >>>>>> >>>>>> $_SERVER["REMOTE_ADDR”]=185.26.182.31 >>>>>> >>>>>> nginx version: nginx/1.10.1 >>>>>> built by gcc 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) >>>>>> built with OpenSSL 1.0.1e-fips 11 Feb 2013 >>>>>> TLS SNI support enabled >>>>>> configure arguments: --without-http_uwsgi_module >>>>>> --without-http_scgi_module --with-http_ssl_module >>>>>> --with-http_stub_status_module --without-mail_pop3_module >>>>>> --without-mail_imap_module --without-mail_smtp_module >>>>>> --with-http_geoip_module --add-module=../ngx_cache_purge-2.3/ >>>>>> --with-file-aio --with-http_image_filter_module --with-http_realip_module >>>>>> >>>>>> Чего не хватает котенку? >>>>>> >>>>>> _______________________________________________ >>>>>> nginx-ru mailing list >>>>>> [email protected] >>>>>> http://mailman.nginx.org/mailman/listinfo/nginx-ru >>>>>> >>>>> >>>>> -- >>>>> Fedor Dikarev >>>>> >>>>> _______________________________________________ >>>>> nginx-ru mailing list >>>>> [email protected] >>>>> http://mailman.nginx.org/mailman/listinfo/nginx-ru >>>> >>> >>> _______________________________________________ >>> nginx-ru mailing list >>> [email protected] >>> http://mailman.nginx.org/mailman/listinfo/nginx-ru >>> >> >> -- >> Fedor Dikarev >> >> _______________________________________________ >> nginx-ru mailing list >> [email protected] >> http://mailman.nginx.org/mailman/listinfo/nginx-ru > _______________________________________________ nginx-ru mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx-ru
