I’d like to run discourse (in docker container) along with another site on my machine. I cannot get apache to reverse proxy SSL (reverse proxy with HTTP works fine).
- Does anyone have a working apache setup where one has a reverse proxy to a https discourse site?
- Alternatively, are there any problems with just letting apache add the SSL and leaving the discourse docker container serving http? (should I set the ssl SiteSettings setting?)
My Apache setup looks like this:
<VirtualHost *:443> ServerName forum.mydomain.org SSLEngine On SSLCertificateFile /var/docker/shared/standalone/ssl/ssl.crt SSLCertificateKeyFile /var/docker/shared/standalone/ssl/ssl.key SSLProxyEngine On SSLProxyCACertificateFile /var/docker/shared/standalone/ssl/ssl.crt ProxyPreserveHost On ProxyRequests Off ProxyPass / https://localhost:7000/ ProxyPassReverse / https://localhost:7000/ CustomLog /var/log/apache2/discourse_apache_proxy_https_access.log combined ErrorLog /var/log/apache2/discourse_apache_proxy_https_error.log </VirtualHost>
and the error Apache gives is this:
The proxy server could not handle the request GET /.