# 计算机的443端口使用主机名似乎无法访问

**URL:** https://meta.discourse.org/t/port-443-of-computer-does-not-appear-to-be-accessible-using-hostname/158829
**Category:** Self-hosting
**Created:** [2020年七月26日 08:39 UTC](https://meta.discourse.org/t/port-443-of-computer-does-not-appear-to-be-accessible-using-hostname/158829 "2020-07-26T08:39:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Vupesh\_Mohanty](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vupesh_mohanty/32/159443_2.png) [@Vupesh\_Mohanty](https://meta.discourse.org/u/Vupesh_Mohanty)
#### Post date: [2020年七月26日 08:39 UTC](https://meta.discourse.org/t/port-443-of-computer-does-not-appear-to-be-accessible-using-hostname/158829/1 "2020-07-26T08:39:16Z")

</div>

我尝试在 DigitalOcean 上运行 Discourse，但遇到了以下问题。

```
正在检查您的域名...
警告：无法通过主机名 [discourse.32questions.com](http://discourse.32questions.com/) 访问计算机的 443 端口。
警告：连接到 [http://discourse.32questions.com](http://discourse.32questions.com/)（80 端口）也失败。
[09:35, 7/26/2020] VM：这表明 [discourse.32questions.com](http://discourse.32questions.com/) 解析到了某个 IP 地址，但该地址无法访问您正在安装 Discourse 的这台机器。

首先要做的是确认 [discourse.32questions.com](http://discourse.32questions.com/) 已解析为此服务器的 IP 地址。
您通常可以在购买域名的同一处进行此操作。

```

 ![unnamed](https://global.discourse-cdn.com/meta/original/3X/c/b/cbb83bcfe71d0f17010af4360e57e3fef20ce759.png)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2020年七月26日 14:03 UTC](https://meta.discourse.org/t/port-443-of-computer-does-not-appear-to-be-accessible-using-hostname/158829/2 "2020-07-26T14:03:03Z")

</div>

如果这是您的 Droplet 的正确 IP 地址，那么下一步的可能性是您已配置了某种防火墙。

---

<div class="post-metadata">

### Author: ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)
#### Post date: [2020年七月26日 16:25 UTC](https://meta.discourse.org/t/port-443-of-computer-does-not-appear-to-be-accessible-using-hostname/158829/3 "2020-07-26T16:25:07Z")

</div>

由于我从未创建过 A 记录，请对此说法持保留态度。

检查 [32questions.com](http://32questions.com) 的 DNS A 记录成功。([ref](https://mxtoolbox.com/SuperTool.aspx?action=dns%3a32questions.com&run=toolpage))

检查 [discourse.32questions.com](http://discourse.32questions.com) 的 DNS 记录失败。([ref](https://mxtoolbox.com/SuperTool.aspx?action=dns%3adiscourse.32questions.com&run=toolpage))

检查 [www.32questions.com](http://www.32questions.com) 的 DNS 记录成功。([ref](https://mxtoolbox.com/SuperTool.aspx?action=dns%3awww.32questions.com&run=toolpage))

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [2020年七月26日 17:46 UTC](https://meta.discourse.org/t/port-443-of-computer-does-not-appear-to-be-accessible-using-hostname/158829/4 "2020-07-26T17:46:03Z")

</div>

您的 IP 指向 [32questions.com](http://32questions.com)，但设置中配置的是 [discourse.32questions.com](http://discourse.32questions.com)

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/d/6d14cfc86ec5b362e9378d94a57b1f6bc4641d19.png)  
 ![image](https://global.discourse-cdn.com/meta/original/3X/f/2/f2eae40d31abd9318178a3c048390eaefa26c6c8.png)
