# Установка WordPress и Discourse на одном домене и сервере?

**URL:** https://meta.discourse.org/t/installation-of-wordpress-and-discourse-same-domain-same-server/149699
**Category:** Self-hosting
**Created:** [29.Апрель.2020 01:11:56 UTC](https://meta.discourse.org/t/installation-of-wordpress-and-discourse-same-domain-same-server/149699 "2020-04-29T01:11:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DanielDai](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@DanielDai](https://meta.discourse.org/u/DanielDai)
#### Post date: [29.Апрель.2020 01:11:56 UTC](https://meta.discourse.org/t/installation-of-wordpress-and-discourse-same-domain-same-server/149699/1 "2020-04-29T01:11:56Z")

</div>

Мы новые пользователи Discourse. Мы попытались установить WordPress на основном домене и Discourse на поддомене форума с помощью Docker на одном сервере Ubuntu 18.04. Мы указали DNS A-запись основного домена и отдельную A-запись поддомена форума на IP-адрес сервера.

Когда мы ввели [example.com](http://example.com) в браузере, мы увидели известную страницу установки WordPress за 5 минут. Это хорошо.

Однако при вводе [forum.example.com](http://forum.example.com) в браузере по-прежнему отображается та же известная страница установки WordPress за 5 минут.

К сожалению, нам не удалось увидеть страницу запуска Discourse. Возможно, проблема в настройках DNS?

Мы задаемся вопросом, нужно ли нам также установить Nginx, чтобы получить SSL-сертификат Let’s Encrypt.

---

<div class="post-metadata">

### Author: ![DanielDai](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@DanielDai](https://meta.discourse.org/u/DanielDai)
#### Post date: [29.Апрель.2020 04:32:51 UTC](https://meta.discourse.org/t/installation-of-wordpress-and-discourse-same-domain-same-server/149699/2 "2020-04-29T04:32:51Z")

</div>

Обновление:

1. Мы переустановили VPS-сервер и следовали официальному руководству на GitHub. Да, установка для [forum.example.com](http://forum.example.com) завершена успешно, поэтому мы видим фронтенд и бэкенд (панель управления) нашего собственного форума Discourse. У него уже есть HTTPS SSL-сертификат.

2. Мы также установили веб-сайт WordPress с помощью Docker. Мы обнаружили одну проблему: доступ к этому сайту WordPress возможен только через IP:порт 8000. У этого сайта WordPress нет HTTPS SSL-сертификата.

3. Если ввести основной домен [example.com](http://example.com) в браузере и перейти по нему, он перенаправит нас на наш форум Discourse. На самом деле мы хотим использовать этот основной домен для сайта WordPress.

---

<div class="post-metadata">

### Author: ![NamVr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/namvr/32/189838_2.png) [@NamVr](https://meta.discourse.org/u/NamVr)
#### Post date: [01.Июль.2020 16:05:58 UTC](https://meta.discourse.org/t/installation-of-wordpress-and-discourse-same-domain-same-server/149699/3 "2020-07-01T16:05:58Z")

</div>

Я тоже жду ответа.

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [19.Июль.2020 01:32:45 UTC](https://meta.discourse.org/t/installation-of-wordpress-and-discourse-same-domain-same-server/149699/4 "2020-07-19T01:32:45Z")

</div>

Вам придется попробовать сделать что-то вроде этого

> **[Host Multiple Websites on a Single Server with Apache on Ubuntu](https://www.atlantic.net/vps-hosting/host-multiple-websites-on-a-single-server-with-apache-on-ubuntu/)**
>
> Apache is free and the most widely used web server around the world. It is not only known for its power, also its multiple components with specific functions.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [19.Июль.2020 04:18:31 UTC](https://meta.discourse.org/t/installation-of-wordpress-and-discourse-same-domain-same-server/149699/5 "2020-07-19T04:18:31Z")

</div>

Обратитесь к этому руководству:

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