# 主机名更改后出现幽灵主机名

**URL:** https://meta.discourse.org/t/ghost-hostname-after-hostname-change/241353
**Category:** Support
**Created:** [2022年十月8日 17:37 UTC](https://meta.discourse.org/t/ghost-hostname-after-hostname-change/241353 "2022-10-08T17:37:04Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![johnknapp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johnknapp/32/275917_2.png) [@johnknapp](https://meta.discourse.org/u/johnknapp)
#### Post date: [2022年十月9日 18:05 UTC](https://meta.discourse.org/t/ghost-hostname-after-hostname-change/241353/3 "2022-10-09T18:05:56Z")

</div>

感谢 Jay 提供链接。我还没有找到那个话题。🙂

根据你的输入和那个链接的话题，我已经：

1. 禁用了 Cloudflare，并通过 [DNSChecker.org](http://DNSChecker.org) 确认我的 A 记录解析到我的 DO 滴管 IP
2. 仔细检查了我的 app.yml（它没问题）
3. 进入了 app 容器并从旧域名运行了 `discourse remap` 到新域名，它进行了更改。为了确认，我第二次运行它，它没有更改就退出了
4. 使用递归 grep 在 app 容器内外搜索旧域名，但一无所获
5. 重建了 app 并研究了 docker run 命令。没有发现问题。
6. 进入我的管理员界面，将备份从本地更改为 S3
7. 继续收到之前的 500 错误。😿
8. 改回本地备份，一切又恢复正常。
9. 启用了 Cloudflare 并再次确认它正在代理
10. 我感到卡住了，基本上是 🤷‍♂️

---

_[View the full topic](https://meta.discourse.org/t/ghost-hostname-after-hostname-change/241353)._
