# All IPs recorded as 127.0.0.1

**URL:** <https://meta.discourse.org/t/all-ips-recorded-as-127-0-0-1/64135>\
**Category:** Self-hosting\
**Created:** [2017年六月7日 22:56 UTC](https://meta.discourse.org/t/all-ips-recorded-as-127-0-0-1/64135 "2017-06-07T22:56:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![rohmann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rohmann/32/120852_2.png) [@rohmann](https://meta.discourse.org/u/rohmann)\
**Post date:** [2017年六月8日 15:25 UTC](https://meta.discourse.org/t/all-ips-recorded-as-127-0-0-1/64135/5 "2017-06-08T15:25:22Z")

</div>

Got it working! I had followed this guide, but didn’t realize I should have taken out the replace command for the Fastly CDN

> [@Serve Discourse from a subfolder (path prefix) instead of a subdomain](https://meta.discourse.org/t/subfolder-support-with-docker/30507):
>
> warning Discourse Official Statement about Subfolder setup We support subfolder setups for our hosted customers at the enterprise level and up. Due to heavy technical setup complexity we strongly recommend you do not use this setup unless you are very experienced in custom subfolder setups. It is critical you have a deep understanding of NGINX setup in the Discourse Docker container Secure original IP forwarding using custom headers in the proxy chain Rate limiting in front proxy server I…

I also added this to my container `app.yml` so it would recognize my upstream proxy.

```plaintext
- replace:
       filename: /etc/nginx/conf.d/discourse.conf
       from: keepalive_timeout 65;
       to: |
          keepalive_timeout 65;
          set_real_ip_from [proxy IP];

```

---

_[View the full topic](https://meta.discourse.org/t/all-ips-recorded-as-127-0-0-1/64135)._
