Show real IP in stead of CloudFlare in Apache logs

Aar

Verified User
Joined
Feb 10, 2005
Messages
209
Location
Netherlands
Hello,

I use Cloudflare on a few on my domains. But in the access- and error_logs i will see only the IP-adresses of the cloudflare proxy, and not the real ip-adresses of the visitors.

I have been searching on Google for a while, but what is the best way to see the real IP addresses in the logs with Apache 2.4?

I've heard about mod_cloudflare, but this is now deprecated.
What is the best solution?
 
@sufiyanshaikh
Does /usr/lib/apache/mod_cloudflare.so existing?

What is the error?
I can't imagine that is outdated. I have the recent Apache version and its works perfectly.
 
YES. It's present but still its working for me

I have just tested the same on testing server and its WORKING!
I am not sure what has got wrong that its not working on my production server.

I have created a ticket with DA and waiting for their reply
 
Damn!

I tried installing it again on production server and its WORKING!

I followed the same guide and now its working.
I am not sure what was the issue because I have changed nothing!
 
I don't think so.
I have not changed anything in server and after testing on Testing server,I tried again in production server and worked!

Thanks Aar for your reply. Because of you I tired to install it on test server or else I would be waiting for DA support reply
 
Back
Top