Show X-Forwarded-For IP in Apache
When apache is running behind the proxy server it shows the IP of the proxy server as visitor IP. To fix this, you need to enable Apache module remoteip. https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html On Ubuntu/Debian, this can be enabled with the command a2enmod remoteip Now create file vi /etc/apache2/conf-available/remoteip.conf Add RemoteIPHeader X-Forwarded-For RemoteIPTrustedProxy IP_OF_YOUR_PROXY_SERVER_HERE IP_OF_YOUR_PROXY_SERVER_HERE = repace with … Read more