# 登录页

**URL:** https://meta.discourse.org/t/landing-page/274281
**Category:** Self-hosting
**Created:** [2023年八月8日 01:43 UTC](https://meta.discourse.org/t/landing-page/274281 "2023-08-08T01:43:11Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [2023年八月9日 14:02 UTC](https://meta.discourse.org/t/landing-page/274281/9 "2023-08-09T14:02:11Z")

</div>

虽然你可以找到一些变通方法，比如我的例子，让一个页面看起来不像你的 Discourse，让它看起来不属于 Discourse，但 JavaScript 部分会很棘手。

我认为最恰当的方法是，在你的服务器上与 Discourse 一起运行一个 Web 服务器。这方面有文档：

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/run-other-websites-on-the-same-machine-as-discourse/17247?u=canapin):
>
> @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 …

> [@Set up Discourse on a server with existing Apache sites](https://meta.discourse.org/t/set-up-discourse-on-a-server-with-existing-apache-sites/30013?u=canapin):
>
> It’s not as daunting as it sounds! While this may sound a bit intimidating at first, it’s really not all that bad. You basically need to do two things: Install HAProxy (or an alternative) which will take over port 80 and then divert your Discourse traffic to your docker container, and all your other sites to your usual Apache set-up. Let Apache know which port to listen for. While this is only a rough guide, it should do a good job of pointing you in the right direction. Let’s get star…

或者将你的网站托管在另一台服务器上，这要容易得多。一个低配置、便宜的服务器就能完美胜任。

你可以找到每月约 2 美元的托管计划。你甚至可以在 OVH 上获得免费的 [100 MB 计划](https://www.ovhcloud.com/en-ie/domains/free-web-hosting/)，但我认为域名必须在他们的网站上注册。

---

_[View the full topic](https://meta.discourse.org/t/landing-page/274281)._
