# 如何设置带 www 的域名？

**URL:** <https://meta.discourse.org/t/how-should-i-setup-with-www-domain/134999>\
**Category:** Self-hosting\
**Created:** [2019 年12 月 3 日 19:58 UTC](https://meta.discourse.org/t/how-should-i-setup-with-www-domain/134999 "2019-12-03T19:58:34Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

作者： ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
发布日期： [2019 年12 月 3 日 22:21 UTC](https://meta.discourse.org/t/how-should-i-setup-with-www-domain/134999/7 "2019-12-03T22:21:43Z")

</div>

> [@Alex\_P](#):
>
> 嗯，我以为 `www.` 在技术上与 `forum.` 是同一个子域名？

不。它们……是不同的。

我建议你将 Mailgun 配置为从 `www.x.com` 发送邮件，这样如果你将来决定对邮件和 `x.com` 进行某些操作，就不会因为其与 Discourse 共享域名而变得复杂。

> [@Alex\_P](#):
>
> （并且 `example.com` 会重定向到 www.）

参见 [https://www.forcewww.com/](https://www.forcewww.com/)

---

_[View the full topic](https://meta.discourse.org/t/how-should-i-setup-with-www-domain/134999)._
