# 프록시를 통한 실제 IP가 더 이상 인식되지 않음

**URL:** https://meta.discourse.org/t/real-ip-no-longer-recognized-through-proxy/407792
**Category:** Self-hosting
**Created:** [7월 16, 2026, 1:02오후 UTC](https://meta.discourse.org/t/real-ip-no-longer-recognized-through-proxy/407792 "2026-07-16T13:02:29Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![mcdanlj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcdanlj/32/131829_2.png) [@mcdanlj](https://meta.discourse.org/u/mcdanlj)
#### Post date: [7월 16, 2026, 5:07오후 UTC](https://meta.discourse.org/t/real-ip-no-longer-recognized-through-proxy/407792/5 "2026-07-16T17:07:03Z")

</div>

> [@pfaffman](#):
>
> 제가 이렇게 하고 있는데 아직 잘 동작하는 것 같습니다.

제 환경에서는 작동하지 않습니다.

참조된 커밋 때문에 제 환경에서 작동이 멈춘 이유를 이제 이해했습니다. 제가 수년간 사용해 온 `set_real_ip` 치환이 깨져버린 것이었습니다. 더 견고하게 만들려는 이유는 타당하며, 이는 더 나은 방법입니다. 한 번의 호환성 변경 이후로는 미래에 깨질 가능성이 줄어들 것입니다.

`after_bundle_exec` 치환이 적용되지 않는 이유는 알 수 없지만, 파일 드롭 방식으로 전환할 예정입니다.

제 환경에서는 이렇게 하면 작동합니다. 다음 사람을 위해 공유합니다:

```plaintext
run:
  - file:
     path: /etc/nginx/conf.d/outlets/server/real-ip-recursive.conf
     chmod: 644
     contents: |
       real_ip_recursive on;
  - file:
     path: /etc/nginx/conf.d/outlets/server/real-ip-header.conf
     chmod: 644
     contents: |
       real_ip_header X-Forwarded-For;
  - file:
     path: /etc/nginx/conf.d/outlets/server/set-real-ip-from.conf
     chmod: 644
     contents: |
       set_real_ip_from 192.168.0.0/16;
       set_real_ip_from 172.16.0.0/12;
       set_real_ip_from 10.0.0.0/8;

```

---

_[View the full topic](https://meta.discourse.org/t/real-ip-no-longer-recognized-through-proxy/407792)._
