Hello guys ,
I'm using the latest version of directadmin on a centos 7 server . web server is nginx_apache . now I have set up geoip to redirect users based on their country and it works perfectly when I use my own dns settings ! But as soon as I set cloudflare dnses , the system breaks because obviously nginx is unable to recognize the real ip of the visitor and is judging based on cloudflare ip ! I have read this post and done the instructions but I have had no luck : https://www.marekbosman.com/site/get-the-real-ip-address-using-cloudflare-and-nginx/
Am I missing something? can you guys help me with this? I really need this process to work . thanks .
I'm using the latest version of directadmin on a centos 7 server . web server is nginx_apache . now I have set up geoip to redirect users based on their country and it works perfectly when I use my own dns settings ! But as soon as I set cloudflare dnses , the system breaks because obviously nginx is unable to recognize the real ip of the visitor and is judging based on cloudflare ip ! I have read this post and done the instructions but I have had no luck : https://www.marekbosman.com/site/get-the-real-ip-address-using-cloudflare-and-nginx/
Am I missing something? can you guys help me with this? I really need this process to work . thanks .