Easy integration with cloudflare installing mod_cloudflare
It is possible to make cloudways work with cloudflare providing an additional level of protection against DDoS attacks and catching. It is just an issue of making cloudflare DNS point to the public address of the application on cloudways.
But there is an issue that needs to be resolved. The IP address that cloudways sees on $SERVER['REMOTEADDR'] is cloudflare IPs and not the clients IPs. This has a server impact specially in Ëurope with the tax on virtual products where the country of the customer needs to be verified by his IP (plus another non conflicting prove).
By installing the modcloudflare on the cloudways server $SERVER['REMOTE_ADDR'] will have the clients IP instead of cloudflare's IP solving this legal issue in Europe.
This has been done. You can activate it via Server Settings → Advanced Settings → Cloudflare (under Nginx section).
k wije commented
I still get the visitors ip as 127.0.0.1. I can't get visitor ip. Please help
AdminCloudways (Admin, Cloudways) commented
This has been done. You can activate it via Server Settings -> Advanced Settings -> Cloudflare (under Nginx section).
I've had several times contacted the support to check for high amount of IP trying to bruteforce, and the IP they gave me was a cloudflare IP. This makes trying to solve things very hard.
I thought I had suggested a similar one before. But yes, we do need mod_cloudflare so that we can see the actual IP and not CF IP.
Yes, we are having lots of server load issues, and not being able to see the actual visitor's IP addresses in the access logs is a big problem.
Please provide a way for us to install mod_cloudflare... the SSH provided doesn't seem to allow us to do so.