# Настройка discourse.domain.com с основным сайтом на domain.com

**URL:** https://meta.discourse.org/t/setup-discourse-domain-com-with-main-site-at-domain-com/174271
**Category:** Self-hosting
**Created:** [25.Декабрь.2020 18:45:49 UTC](https://meta.discourse.org/t/setup-discourse-domain-com-with-main-site-at-domain-com/174271 "2020-12-25T18:45:49Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![geoff777](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geoff777/32/202388_2.png) [@geoff777](https://meta.discourse.org/u/geoff777)
#### Post date: [25.Декабрь.2020 20:37:30 UTC](https://meta.discourse.org/t/setup-discourse-domain-com-with-main-site-at-domain-com/174271/4 "2020-12-25T20:37:30Z")

</div>

Стандартная настройка для достижения вашей цели — два сервера.

Я считаю, что это можно реализовать на одном сервере… Я сам этого не пробовал. Удачи.

> [@Set up Discourse on a server with existing Apache sites](https://meta.discourse.org/t/how-to-set-up-discourse-on-a-server-with-existing-apache-sites/30013):
>
> 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…

> [@epsteindidnt](#):
>
> Мой клиент, скорее всего, не захочет платить за запуск второго сервера для того, что он считает одним сайтом.

Вам нужно объяснить клиенту, что корневой домен и любые поддомены — это разные веб-сайты.  
Особенно если они рассчитывают на рост числа посетителей.

---

_[View the full topic](https://meta.discourse.org/t/setup-discourse-domain-com-with-main-site-at-domain-com/174271)._
