# Cloudflare Real-IP via Apache

**URL:** https://meta.discourse.org/t/cloudflare-real-ip-via-apache/113482
**Category:** Self-hosting
**Created:** [4 april 2019 om 21:26 UTC](https://meta.discourse.org/t/cloudflare-real-ip-via-apache/113482 "2019-04-04T21:26:26Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [5 april 2019 om 02:13 UTC](https://meta.discourse.org/t/cloudflare-real-ip-via-apache/113482/2 "2019-04-05T02:13:42Z")

</div>

Since this is cloudflare you want to use the cloudflare pattern and pass through the header.

> <https://github.com/discourse/discourse_docker/blob/master/templates/cloudflare.template.yml#L16>

So you want to pass `CF-Connecting-IP` through apache and then to mix in our cloudflare template.

---

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