# 无法让 Discourse 在不同端口上运行

**URL:** <https://meta.discourse.org/t/cant-get-discourse-to-work-on-different-ports/182504>\
**Category:** Self-hosting\
**Created:** [2021 年3 月 8 日 15:39 UTC](https://meta.discourse.org/t/cant-get-discourse-to-work-on-different-ports/182504 "2021-03-08T15:39:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)\
发布日期： [2021 年3 月 9 日 09:32 UTC](https://meta.discourse.org/t/cant-get-discourse-to-work-on-different-ports/182504/2 "2021-03-09T09:32:52Z")

</div>

> [@firewire10000](#):
>
> 如果我使用 curl 请求该 URL 和端口号，会得到 `301 Moved permanently`：

这很可能是 HTTP 端口重定向到了 HTTPS 端口。（使用 `curl` 的 `-I` 标志可以显示重定向的目标地址。）

运行 `curl forum.example.com:10443` 应该能按预期加载网站。

---

_[View the full topic](https://meta.discourse.org/t/cant-get-discourse-to-work-on-different-ports/182504)._
