# 我如何为Discourse配置子域名？

**URL:** <https://meta.discourse.org/t/how-do-i-configure-a-subdomain-for-discourse/366299>\
**Category:** Support\
**Created:** [2025年五月15日 16:17 UTC](https://meta.discourse.org/t/how-do-i-configure-a-subdomain-for-discourse/366299 "2025-05-15T16:17:29Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2025年五月16日 15:54 UTC](https://meta.discourse.org/t/how-do-i-configure-a-subdomain-for-discourse/366299/9 "2025-05-16T15:54:02Z")

</div>

我之前对“@”的说法是错的，抱歉，该列是“Host”。

以下是一些示例：

 ![Screenshot 2025-05-16 165235](https://global.discourse-cdn.com/meta/original/4X/7/8/e/78ee311300661b9669fb011501b7f7d44b7ec3fa.png)

其中 Value 是所需的 IP 地址。

所以：

- `demo.example.com`
- `dev.example.com`
- `snow.example.com`

就这些了！

（不过，您还需要使用类似 Let’s Encrypt 的工具从服务器请求证书，除非它像 Discourse 那样自动完成）

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-configure-a-subdomain-for-discourse/366299)._
