Cloudflare tunnel - apache2 show source IP
I want Apache2 to see the correct IP through the Cloudflare tunnel, I did everything according to https://developers.cloudflare.com/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips/ but there is still a local IP in the logs.
When I run this simple script through the CF tunnel, my real IP is shown, so the forwarding works, but Apache doesn't see it, what could be the problem?
Cloudflare Docs
Restoring original visitor IPs · Cloudflare Support docs
When your website traffic is routed through the Cloudflare network, we act as a reverse proxy. This allows Cloudflare to speed up page load time by routing packets more efficiently and caching static resources (images, JavaScript, CSS, etc.). As a result, when responding to requests and logging them, your origin server returns a Cloudflare IP ad...
2 Replies