Show real ip in cpanel Apache log when using cloudflare

Cloudflare’s own Apache mod_cloudflare is now discontinued, we will install Apache’s own mod_remoteip in cPanel. 1. Install mod_remoteip in EA4 (uninstall mod_cloudflare if exists) 2. Add following list of trusted Cloudflare proxy IPs to a file /etc/apache2/conf.modules.d/370_mod_remoteip.conf RemoteIPHeader X-Real-IP RemoteIPTrustedProxy 173.245.48.0/20 RemoteIPTrustedProxy 103.21.244.0/22 RemoteIPTrustedProxy 103.22.200.0/22 RemoteIPTrustedProxy 103.31.4.0/22 RemoteIPTrustedProxy 141.101.64.0/18 RemoteIPTrustedProxy 108.162.192.0/18 RemoteIPTrustedProxy 190.93.240.0/20 RemoteIPTrustedProxy 188.114.96.0/20…