# 502 Bad Gateway 및 Discourse 버전 NOT FOUND

**URL:** https://meta.discourse.org/t/502-bad-gateway-and-discourse-version-not-found/196134
**Category:** Self-hosting
**Created:** [7월 6, 2021, 8:18오전 UTC](https://meta.discourse.org/t/502-bad-gateway-and-discourse-version-not-found/196134 "2021-07-06T08:18:23Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Pigeon](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@Pigeon](https://meta.discourse.org/u/Pigeon)
#### Post date: [7월 6, 2021, 2:22오후 UTC](https://meta.discourse.org/t/502-bad-gateway-and-discourse-version-not-found/196134/5 "2021-07-06T14:22:39Z")

</div>

CentOS는 다른 설정이 필요한 것 같아서, 이 튜토리얼의 nginx 설정을 따랐습니다:

> **[How to Install Discourse Forum with Nginx on CentOS 7](https://www.howtoforge.com/tutorial/how-to-install-and-configure-discourse-forum-with-nginx-on-centos-7/)**
>
> Discourse is a free and open source software for creating Internet forum community and mailing list. In this tutorial, we will show you step-by-step, ...

또한 MYDOMAIN.net과 discourse.MYDOMAIN.net을 nginx를 통해 같은 머신에서 실행하고 싶어서, 해당 튜토리얼에서 확인한 app.yml과 nginx conf에 몇 가지 추가 변경 사항도 적용했습니다:

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247/182):
>
> The guide in the first post is great and, on the whole, still works just fine sunny There are three things worth noting: I initially missed some of the app.yml changes. There are 3 things you need to change in your app.yml. If you miss any of these things it won’t work: Comment out all ssl templates in the templates. If you are using letsencrypt you will have two:# - "templates/web.ssl.template.yml" # - "templates/web.letsencrypt.ssl.template.yml" Add a socket template:- "templates/web…

예를 들어 웹소켓 템플릿을 활성화해 두었습니다.

하지만 이제 그 튜토리얼의 댓글에서 소켓을 사용하려면 모든 노출된 포트를 주석 처리해야 한다는 내용을 읽었습니다. 다만 첫 번째 설정을 참고하면 nginx가 25654로 전달하는 트래픽을 수신하도록 “25654:80” 항목을 추가하고 있습니다.

이것이 기본적인 설정 문제라면 죄송합니다. 포트 포워딩/소켓 및 일반적인 네트워크 설정은 제 강점이 아니기 때문입니다.

---

_[View the full topic](https://meta.discourse.org/t/502-bad-gateway-and-discourse-version-not-found/196134)._
