Привет!

В 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

Ответить