How to install mod_cloudflare on Apache for Ubuntu

When you use CloudFlare CDN it acts as a proxy to your content and distributes it all around the world. Therefore in your raw HTTP access logs you’ll see the CloudFlare hostnames as opposed to the original IP address.

Although you have analytics installed sometimes it’s important (and legally required sometimes) to have full logs available. Following the steps below will change your access logs from: