# 如何将Discourse的端口80和443更改为其他端口

**URL:** <https://meta.discourse.org/t/how-to-change-discourse-port-80-and-443-to-another-port/305587>\
**Category:** Self-hosting\
**Created:** [2024年四月26日 15:25 UTC](https://meta.discourse.org/t/how-to-change-discourse-port-80-and-443-to-another-port/305587 "2024-04-26T15:25:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Post date:** [2024年四月26日 18:44 UTC](https://meta.discourse.org/t/how-to-change-discourse-port-80-and-443-to-another-port/305587/2 "2024-04-26T18:44:16Z")

</div>

我相信这个主题应该包含您需要的所有答案：

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/run-other-websites-on-the-same-machine-as-discourse/17247):
>
> @pfaffman edited this heavily 2022.02.24. Blame me if it’s broken. If you want to run other websites on the same machine as Discourse, you need to set up an extra NGINX or HAProxy proxy in front of the Docker container. NOTE: This is for advanced admins This guide assumes you already have Discourse working - if you don’t, it may be hard to tell whether or not the configuration is working. You cannot use ./discourse-setup to set up Discourse if another server is using port 80 or 443. You will …

---

_[View the full topic](https://meta.discourse.org/t/how-to-change-discourse-port-80-and-443-to-another-port/305587)._
