# Cloudflare Real-IP via Apache

**URL:** <https://meta.discourse.org/t/cloudflare-real-ip-via-apache/113482>\
**Category:** Self-hosting\
**Created:** [April 4, 2019, 9:26pm UTC](https://meta.discourse.org/t/cloudflare-real-ip-via-apache/113482 "2019-04-04T21:26:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![RyanGarber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryangarber/32/137479_2.png) [@RyanGarber](https://meta.discourse.org/u/RyanGarber)\
**Post date:** [April 4, 2019, 9:26pm UTC](https://meta.discourse.org/t/cloudflare-real-ip-via-apache/113482/1 "2019-04-04T21:26:27Z")

</div>

Hey there, I operate a Discourse forum that’s gaining traction, and I’ve been searching for hours on how to forward people’s real IPs to Discourse, instead of Cloudflare’s.

Every single topic I’ve seen, people are asking about doing this with nginx, and people who aren’t end up being persuaded to move over to it. The problem is, the site I’m running uses Apache features I need, and rebuilding it under nginx is not worth the hassle.

Here’s my config right now:

```
RequestHeader set X-Real-IP "%{CF_CONNECTING_IP}e"
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/

```

Unfortunately, I’ve done many actions on the forum, but my “last ip address” field is still Cloudflare’s. Is there anything obviously wrong with this? Or could it be a configuration issue with my Discourse container?

Edit: it was _both_, see [sam’s reply](https://meta.discourse.org/t/cloudflare-real-ip-via-apache/113482/2) and [mine](https://meta.discourse.org/t/cloudflare-real-ip-via-apache/113482/4).

---

_[View the full topic](https://meta.discourse.org/t/cloudflare-real-ip-via-apache/113482)._
