# 警告：计算机的 443 端口似乎无法通过主机名访问

**URL:** <https://meta.discourse.org/t/warning-port-443-of-computer-does-not-appear-to-be-accessible-using-hostname/173520>\
**Category:** Self-hosting\
**Created:** [2020 年12 月 16 日 18:53 UTC](https://meta.discourse.org/t/warning-port-443-of-computer-does-not-appear-to-be-accessible-using-hostname/173520 "2020-12-16T18:53:01Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

作者： ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
发布日期： [2020 年12 月 17 日 15:28 UTC](https://meta.discourse.org/t/warning-port-443-of-computer-does-not-appear-to-be-accessible-using-hostname/173520/14 "2020-12-17T15:28:40Z")

</div>

> [@Murto](#):
>
> 大家还有其他想法吗？

嘿 @Murto

顺便提一下，作为后端 Rails 应用，如果你将 Rails 配置为使用 Unix 域套接字而非 TCP/IP 端口，并在反向代理后部署 Discourse 应用，那么 Discourse 的设置会容易得多。

这样一来，TCP/IP 端口仅通过反向代理暴露，而 Discourse 应用（及其容器）则通过 Unix 域套接字暴露；你可以运行任意数量的 Discourse 容器实例，而无需担心 TCP/IP 端口冲突。在我看来，这是运行 Discourse 非常简洁的方式。

如果你遇到困难或想调整方向，本站上有大量操作指南和教程可供参考。Discourse 发行版中包含一个“socket”模板，可用于设置“Discourse 配置部分”；之后你只需设置反向代理（关于如何操作的教程数不胜数），然后“一切搞定”！

希望这能帮到你。

---

_[View the full topic](https://meta.discourse.org/t/warning-port-443-of-computer-does-not-appear-to-be-accessible-using-hostname/173520)._
