# Запуск Docker с Discourse рядом с Apache

**URL:** <https://meta.discourse.org/t/running-discourse-docker-alongside-apache/161625>\
**Category:** Self-hosting\
**Created:** [21.Август.2020 07:17:18 UTC](https://meta.discourse.org/t/running-discourse-docker-alongside-apache/161625 "2020-08-21T07:17:18Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![rebelCoder](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rebelcoder/32/191230_2.png) [@rebelCoder](https://meta.discourse.org/u/rebelCoder)\
**Post date:** [21.Август.2020 08:19:42 UTC](https://meta.discourse.org/t/running-discourse-docker-alongside-apache/161625/5 "2020-08-21T08:19:42Z")

</div>

Это странно. Настройка, кажется, немного слишком утомительна.

У меня есть только `A Record` для `forum.rebelscience.club`.

Я обновил свои файлы .conf, добавив сертификат:

**cat /etc/apache2/sites-enabled/discourse.conf**

```plaintext
<VirtualHost *:80>
  ServerName forum.rebelscience.club
  ServerAlias www.forum.rebelscience.club

  <IfModule proxy_module>
    ProxyPreserveHost on
    ProxyPass / http://localhost:8081/
    ProxyPassReverse / http://localhost:8081/
  </IfModule>
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.forum.rebelscience.club [OR]
RewriteCond %{SERVER_NAME} =forum.rebelscience.club
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

```

**cat /etc/apache2/sites-enabled/discourse-le-ssl.conf**

```plaintext
<IfModule mod_ssl.c>
<VirtualHost *:443>
  ServerName forum.rebelscience.club
  ServerAlias www.forum.rebelscience.club

  <IfModule proxy_module>
    ProxyPreserveHost on
    ProxyPass / http://localhost:8081/
    ProxyPassReverse / http://localhost:8081/
  </IfModule>

SSLCertificateFile /etc/letsencrypt/live/forum.rebelscience.club/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/forum.rebelscience.club/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

```

Теперь я вижу **`503 Service Unavailable`**.

Я совершенно растерян, что ещё нужно сделать. setup.sh по-прежнему завершается ошибкой с тем же сообщением.

---

_[View the full topic](https://meta.discourse.org/t/running-discourse-docker-alongside-apache/161625)._
