# 我域名here.com上的每个页面都重定向到forum.mydomainhere.com吗？

**URL:** https://meta.discourse.org/t/every-page-on-mydomainhere-com-redirects-to-forum-mydomainhere-com/135916
**Category:** Self-hosting
**Created:** [2019 年12 月 14 日 02:28 UTC](https://meta.discourse.org/t/every-page-on-mydomainhere-com-redirects-to-forum-mydomainhere-com/135916 "2019-12-14T02:28:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### 作者： ![tommy87](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@tommy87](https://meta.discourse.org/u/tommy87)
#### 发布日期： [2019 年12 月 14 日 02:28 UTC](https://meta.discourse.org/t/every-page-on-mydomainhere-com-redirects-to-forum-mydomainhere-com/135916/1 "2019-12-14T02:28:57Z")

</div>

我刚安装了 Discourse，看起来很棒。

我暂时将 Docker 容器设置为使用 8080 端口，以便在 Discourse 安装的同时运行 Apache，并访问我暂时禁用的常规网站。但有一个问题：除了 [forum.domain.com](http://forum.domain.com) 之外，我输入的每个 URL 都会自动重定向回 [forum.mydomainhere.com](http://forum.mydomainhere.com)，因此我无法访问 [mydomainhere.com](http://mydomainhere.com)。

我已使用 ./launcher enter app 进入，现在正在查看 Ruby MVC/框架。希望能有人指导我，是什么控制了该重定向，以便我可以取消它，让 [mydomainhere.com](http://mydomainhere.com) 重新可访问。谢谢！

---

<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 月 14 日 04:42 UTC](https://meta.discourse.org/t/every-page-on-mydomainhere-com-redirects-to-forum-mydomainhere-com/135916/2 "2019-12-14T04:42:46Z")

</div>

您无法在 8080 端口运行 Discourse。如果您将其配置为使用论坛，它会向您的浏览器返回 301 重定向，因此浏览器记住了这一点。请尝试使用无痕模式窗口或其他浏览器。如果您希望在子文件夹中运行，或将 Apache 作为反向代理使用，可以查看相关主题。

---

<div class="post-metadata">

### 作者： ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### 发布日期： [2020 年1 月 14 日 03:45 UTC](https://meta.discourse.org/t/every-page-on-mydomainhere-com-redirects-to-forum-mydomainhere-com/135916/4 "2020-01-14T03:45:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
