# Blazingfast.io 域名与 Discourse 外部托管（无法访问域名）

**URL:** <https://meta.discourse.org/t/blazingfast-io-domain-discourse-hosted-externally-cant-access-domain/239008>\
**Category:** Self-hosting\
**Created:** [2022年九月14日 15:56 UTC](https://meta.discourse.org/t/blazingfast-io-domain-discourse-hosted-externally-cant-access-domain/239008 "2022-09-14T15:56:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![2TapPrince](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/2tapprince/32/269051_2.png) [@2TapPrince](https://meta.discourse.org/u/2TapPrince)\
**Post date:** [2022年九月14日 15:56 UTC](https://meta.discourse.org/t/blazingfast-io-domain-discourse-hosted-externally-cant-access-domain/239008/1 "2022-09-14T15:56:39Z")

</div>

您好，

我想在我的外部托管 VPS 上设置 Discourse。我从 blazingfast 获得了一个域名。

但是，我运行了设置，它说它无法访问我的子域名。所以我联系了 blazingfast 禁用防火墙及其保护（代理）并白名单化我的 VPS IP，因为他们通常不允许来自其网络外部的连接。我尝试再次运行设置，它说它无法建立连接。

子域名指向我的外部托管 VPS。

我执行了以下步骤。

- 我安装了 docker
- 我运行了 git clone [GitHub - discourse/discourse\_docker: A Docker image for Discourse](https://github.com/discourse/discourse_docker.git) /var/discourse
- 我复制了 standalone.yaml 并将其粘贴到容器文件夹中，并将其重命名为 app.yaml
- 我在 discourse 目录内运行了 ./discourse-setup。

```plaintext
您的 Discourse 的主机名？ [discourse.example.com]: community.playnocturn.com
正在检查您的域名 . . .
警告：使用主机名 community.playnocturn.com 无法访问计算机的 443 端口。
警告：连接到 http://community.playnocturn.com（端口 80）也失败。

```

还有什么遗漏的吗？非常感谢。

PS：我忘了提我还有另一个网站在该 VPS 上运行（apache），占用 80 端口。

---

<div class="post-metadata">

**Author:** ![khenmu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/khenmu/32/108976_2.png) [@khenmu](https://meta.discourse.org/u/khenmu)\
**Post date:** [2022年九月14日 16:23 UTC](https://meta.discourse.org/t/blazingfast-io-domain-discourse-hosted-externally-cant-access-domain/239008/2 "2022-09-14T16:23:39Z")

</div>

> [@2TapPrince](#):
>
> 附注：我忘了提我还有另一个网站运行在该VPS的80端口（Apache）上

看看这是否有帮助；

> [@Set up Discourse on a server with existing Apache sites](https://meta.discourse.org/t/how-to-set-up-discourse-on-a-server-with-existing-apache-sites/30013):
>
> It’s not as daunting as it sounds! While this may sound a bit intimidating at first, it’s really not all that bad. You basically need to do two things: Install HAProxy (or an alternative) which will take over port 80 and then divert your Discourse traffic to your docker container, and all your other sites to your usual Apache set-up. Let Apache know which port to listen for. While this is only a rough guide, it should do a good job of pointing you in the right direction. Let’s get star…
