# 在同一域名下，将 Discourse 运行在 / 路径，同时将自定义应用运行在 /tickets 路径

**URL:** <https://meta.discourse.org/t/running-discourse-at-while-serving-a-custom-app-at-tickets-on-the-same-domain/393888>\
**Category:** Self-hosting\
**Created:** [2026年一月20日 14:36 UTC](https://meta.discourse.org/t/running-discourse-at-while-serving-a-custom-app-at-tickets-on-the-same-domain/393888 "2026-01-20T14:36:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![1vernit3](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/1vernit3/32/539886_2.png) [@1vernit3](https://meta.discourse.org/u/1vernit3)\
**Post date:** [2026年一月20日 14:36 UTC](https://meta.discourse.org/t/running-discourse-at-while-serving-a-custom-app-at-tickets-on-the-same-domain/393888/1 "2026-01-20T14:36:36Z")

</div>

大家好，

我正试图确认一种 **正确的架构** ，用于在**保持 Discourse 位于根目录 (/)** 的同时，通过 **子路径** 提供 **自定义应用程序** ，而无需修改 Discourse 内部。

### **我想要的结果（最终目标）**

```yaml
https://mydomain.com/ → Discourse
https://mydomain.com/tickets → 自定义工单系统 (Go + Gin)

```

**要求：**

1. Discourse 必须保持在 `/`，自定义应用必须位于 `/tickets`
2. 相同的域名
3. 不使用 Discourse 插件

### **当前环境**

1. OVH VPS (Ubuntu)，Discourse 运行在 Docker 中 (`/var/discourse`)
2. 自定义 Go 应用运行在同一服务器上的 `127.0.0.1:8080`
3. 外部 nginx 安装在宿主机上（不在容器内）

我 **不是** 想在像 /forum 这样的子文件夹中运行 Discourse。哦，在有人问之前，是的，我尝试过使用 Discourse tickets 插件——但它不能按我想要的方式工作。

---

_[View the full topic](https://meta.discourse.org/t/running-discourse-at-while-serving-a-custom-app-at-tickets-on-the-same-domain/393888)._
