# 从子文件夹（路径前缀）而不是子域提供 Discourse

**URL:** https://meta.discourse.org/t/serve-discourse-from-a-subfolder-path-prefix-instead-of-a-subdomain/30507
**Category:** Self-Hosting
**Tags:** docker, subfolder, how-to, advanced-setup
**Created:** [2015年六月26日 19:18 UTC](https://meta.discourse.org/t/serve-discourse-from-a-subfolder-path-prefix-instead-of-a-subdomain/30507 "2015-06-26T19:18:04Z")
**Posts on this page:** 1
**Showing post:** 115

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2022年一月29日 13:00 UTC](https://meta.discourse.org/t/serve-discourse-from-a-subfolder-path-prefix-instead-of-a-subdomain/30507/115 "2022-01-29T13:00:32Z")

</div>

根据 [为 Discourse 配置 Facebook 登录](https://meta.discourse.org/t/configuring-facebook-login-for-discourse/13394)  
子文件夹的回调 URL 为 `https://discourse.example.com/auth/facebook/callback`，则为 `https://discourse.example.com/forum/auth/facebook/callback`。

---

_[View the full topic](https://meta.discourse.org/t/serve-discourse-from-a-subfolder-path-prefix-instead-of-a-subdomain/30507)._
