gnif / mod_rpaf

reverse proxy add forward module for Apache

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server IP Address Showing In _SERVER["REMOTE_ADDR"]. Is this OK?

flashery opened this issue · comments

I am currently setting up a nginx proxy for apache2 in digital ocean. I am not really a System Admin but I followed this tutorial https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-web-server-and-reverse-proxy-for-apache-on-one-ubuntu-14-04-droplet. He said that "The REMOTE_ADDR variable will now also be that of your local computer's public IP address",

Here is my rpaf.conf

<IfModule mod_rpaf.c>
        RPAF_Enable             On
        RPAF_Header             X-Real-Ip
        RPAF_ProxyIPs           127.0.0.1 10.0.0.0/24
        RPAF_SetHostName        On
        RPAF_SetHTTPS           On
        RPAF_SetPort            On
</IfModule>

However, It's the server IP address showing on REMOTE_ADDR. Is this OK?