# 如何设置子域名

**URL:** https://meta.discourse.org/t/how-to-setup-subdomain/295763
**Category:** Self-hosting
**Tags:** hosting
**Created:** [2024年二月18日 00:16 UTC](https://meta.discourse.org/t/how-to-setup-subdomain/295763 "2024-02-18T00:16:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![xha1e](https://avatars.discourse-cdn.com/v4/letter/x/ec9cab/32.png) [@xha1e](https://meta.discourse.org/u/xha1e)
#### Post date: [2024年二月18日 00:16 UTC](https://meta.discourse.org/t/how-to-setup-subdomain/295763/1 "2024-02-18T00:16:13Z")

</div>

如何设置 [forum.mywebsite.com](http://forum.mywebsite.com)？

我已经添加了一个 A 记录，名称为 forum

但是，我不确定在哪里可以找到我的 discourse 服务器的 IP 地址？

discourse 服务器由 discourse 托管，而不是托管在我自己的机器上。

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年二月18日 00:34 UTC](https://meta.discourse.org/t/how-to-setup-subdomain/295763/2 "2024-02-18T00:34:46Z")

</div>

您好 @xha1e 🙂

> [@xha1e](#):
>
> The discourse server is hosted by discourse, not on my own machine.

如果您由我们托管，这些说明应包含您需要的信息。 👍

> [@Configure your domain name for hosted Discourse](https://meta.discourse.org/t/configure-your-domain-name-for-hosted-discourse/21827):
>
> bookmark This guide explains how to configure a custom domain name for a site hosted by Discourse. This option is available for our Pro, Business, and Enterprise plans. person_raising_hand Required user level: Administrator So you’ve selected a hosted Discourse plan. Lucky you! The very first step is to point your domain name forum.example.com to our hosting. You will need to edit the DNS records for your domain name, example.com. In most cases, the DNS is controlled from the sa…

不过，如果您需要任何额外的帮助，请发送电子邮件至 [team@discourse.org](mailto:team@discourse.org)，我们将能够为您提供帮助。 🙂
