NGINX 1.10 + APACHE 2.4 real IP for reverse proxy Edit nginx conf default.conf or what you want vim /etc/nginx/conf.d/default.conf add proxy_set_header for php files