Topic: set_real_ip_from | real_ip_header
Hi,
I am using a firewall that uses nginx as a proxy. Now since I am also using your plugin on a cPanel it means that I got two reversed proxies. With cpnginx being applied on same server were website is hosted.
Now my question is, can I add the following code:
http://wiki.nginx.org/NginxHttpRealIpMo … al_ip_from
Because my firewall will forward the real IP of clients. Now, nginxcp forwards real IP from client to Apache. But since it cannot read the real IP from firewall I have issues with a couple of websites. Turning off the firewall/shield is not a option.
Now I guess I have to add:
set_real_ip_from $firewall_ip1;
set_real_ip_from $firewall_ip2;
real_ip_header X-Real-IP
But this requires of course that nginx is compiled with this module. Any way to enable it in nginxcp?
Regards,
Raz