# 您的新 Web 服务器已准备就绪

**URL:** https://meta.discourse.org/t/your-new-web-server-is-ready-to-use/242822
**Category:** Self-hosting
**Created:** [2022年十月25日 03:54 UTC](https://meta.discourse.org/t/your-new-web-server-is-ready-to-use/242822 "2022-10-25T03:54:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![spectre](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spectre/32/274073_2.png) [@spectre](https://meta.discourse.org/u/spectre)
#### Post date: [2022年十月25日 03:54 UTC](https://meta.discourse.org/t/your-new-web-server-is-ready-to-use/242822/1 "2022-10-25T03:54:19Z")

</div>

各位，

我在 Ubuntu 22.04 LTS 的一个新子域上安装了全新的 Discourse，过程中没有任何错误，但登录页面却显示了这个：

 ![Success!](https://global.discourse-cdn.com/meta/original/4X/0/5/2/052f00de1c77fac43e3bb1287058f67e35fc9ed0.png)

有什么想法知道哪里出错了??

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2022年十月25日 08:43 UTC](https://meta.discourse.org/t/your-new-web-server-is-ready-to-use/242822/2 "2022-10-25T08:43:20Z")

</div>

您确定您的 DNS 已正确传播吗？

---

<div class="post-metadata">

### Author: ![spectre](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spectre/32/274073_2.png) [@spectre](https://meta.discourse.org/u/spectre)
#### Post date: [2022年十月25日 21:45 UTC](https://meta.discourse.org/t/your-new-web-server-is-ready-to-use/242822/3 "2022-10-25T21:45:04Z")

</div>

是的，它们指向正确的子域，此外，我几周前曾使用过这个子域，并想再次使用它，但却看到了那个而不是真正的网站 ☹

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2022年十月25日 22:05 UTC](https://meta.discourse.org/t/your-new-web-server-is-ready-to-use/242822/4 "2022-10-25T22:05:45Z")

</div>

> [@spectre](#):
>
> 在一个新的子域上

> [@spectre](#):
>
> 几周前我用过这个子域，现在想再次使用它

🤔

也许你同时拥有旧的和新的 DNS 条目？

---

<div class="post-metadata">

### Author: ![spectre](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spectre/32/274073_2.png) [@spectre](https://meta.discourse.org/u/spectre)
#### Post date: [2022年十一月9日 23:19 UTC](https://meta.discourse.org/t/your-new-web-server-is-ready-to-use/242822/5 "2022-11-09T23:19:40Z")

</div>

抱歉回复晚了，关于这个问题，我运行了命令：

`v-list-sys-ips`

结果如下：

> IP MASK NAT STATUS WEB DATE
> 
> * * *
> 
> 172.17.0.1 255.255.0.0 no shared 0 2022-11-09  
> 15.96.43.123 255.255.255.0 no shared 2 2022-11-09

问题在于第二个 IP 接管了这两个域名。

我该如何将 discourse 放在第一个 IP 上，而让另一个 Web 服务器保持在第二个 IP 上呢？

我还运行了以下命令，结果都正常：

> nginx -t
> 
> nginx: the configuration file /etc/nginx/nginx.conf syntax is ok  
> nginx: configuration file /etc/nginx/nginx.conf test is successful
> 
> apachectl configtest
> 
> Syntax OK

任何帮助都将不胜感激 🙇‍♂️

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2022年十一月11日 16:44 UTC](https://meta.discourse.org/t/your-new-web-server-is-ready-to-use/242822/6 "2022-11-11T16:44:37Z")

</div>

> [@spectre](#):
>
> 问题在于第二个 IP 接管了这两个域。

这根本不是这里的问题。

您的服务器没有两个外部 IP 地址，它有两个位于不同网络中的 IP。第一个（172.x）属于私有 IP 地址范围，无法从外部访问。

第二个是分配给您服务器的公共 IP。您的应用程序已正确连接到可从外部访问的 IP。

要使其正常工作，您需要将 Discourse 代理到另一个 Web 服务器后面，此处元上有关于如何执行此操作的指南。目前，我建议您禁用另一个 Web 服务器，专注于让 Discourse 运行到您满意为止，然后再配置代理。
