# 域名与子域名

**URL:** https://meta.discourse.org/t/domain-subdomains/217249
**Category:** Self-hosting
**Tags:** hosting
**Created:** [2022年二月6日 14:05 UTC](https://meta.discourse.org/t/domain-subdomains/217249 "2022-02-06T14:05:56Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [2022年二月6日 15:17 UTC](https://meta.discourse.org/t/domain-subdomains/217249/4 "2022-02-06T15:17:34Z")

</div>

这是一个更高级的设置。您需要遵循以下步骤：

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247):
>
> @pfaffman edited this heavily 2022.02.24. Blame me if it’s broken. If you want to run other websites on the same machine as Discourse, you need to set up an extra NGINX or HAProxy proxy in front of the Docker container. NOTE: This is for advanced admins This guide assumes you already have Discourse working - if you don’t, it may be hard to tell whether or not the configuration is working. You cannot use ./discourse-setup to set up Discourse if another server is using port 80 or 443. You will …

---

_[View the full topic](https://meta.discourse.org/t/domain-subdomains/217249)._
