# 如何在外部域名的子目录中运行 Discourse？

**URL:** https://meta.discourse.org/t/how-to-run-discourse-on-subdirectory-of-external-domain/134788
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [2019 年12 月 1 日 08:15 UTC](https://meta.discourse.org/t/how-to-run-discourse-on-subdirectory-of-external-domain/134788 "2019-12-01T08:15:08Z")
**Posts on this page:** 1
**Showing post:** 2

<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 月 1 日 11:08 UTC](https://meta.discourse.org/t/how-to-run-discourse-on-subdirectory-of-external-domain/134788/2 "2019-12-01T11:08:28Z")

</div>

有可能在两个网站前面都使用 Cloudflare，并通过规则将子文件夹的流量路由到 Discourse。但我不知道是否有人这样做过。你可能需要雇佣专业人士，或者自行研究。请遵循此处关于子文件夹安装的主题讨论，以及 Cloudflare 相关的说明。

我以为“子文件夹对 SEO 更有利”这一观点已经过时了。我的建议是直接使用子域名，但如果你有预算，可以联系我或在 #Marketplace 频道发帖咨询。

---

_[View the full topic](https://meta.discourse.org/t/how-to-run-discourse-on-subdirectory-of-external-domain/134788)._
