HTTPS on Docker Install with own SSL Cert

CMS Version

3.3.0

Installation Method

Docker

Operating System

Ubuntu Server

Issue

I have installed Xibo in docker, using the guide here: Xibo CMS with Docker on Ubuntu 18.04 - However, instead of LetsEncrypt, I have my own SSL cert I want to use, however, struggling to get this working with Apache, does anyone have a guide on this or can point be in the right direction?

Cheers!

Instead of configuring LetsEncrypt, you add your SSL certificate to Apache’s configuration as you would for any other Apache installation with an SSL certificate.

There’s multiple guides out there to configuring SSL on Apache. Broadly it’s something like this:

<VirtualHost *:443>

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        ProxyPreserveHost On
        RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}

        ProxyPass / http://127.0.0.1:8080/
        ProxyPassReverse / http://127.0.0.1:8080/

        SSLEngine on
        SSLCertificateFile /path/to/your_certificate.crt
        SSLCertificateKeyFile /path/to/your_private.key
        SSLCertificateChainFile /path/to/intermediate_bundle.crt

</VirtualHost>

Hi Alex

Thanks - I had thought that would be the case and is what I have done since, however, this now gives me the apache default page rather than the xibo login and still no SSL cert.

You’re likely missing the ProxyPass and ProxyPassReverse lines

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.