Setting up UNA on docker was pretty straightforward - I can access the installation locally, using the local IP and port of the server.
With other docker services, I expose them externally by setting up an Apache reverse proxy with HTTPS.
I have tried to do the same with UNA. However, UNA tried to load some CSS and JS assets with HTTP, which the browser then refuses to load - only the HTML is shown.
My docker UNA_HTTP_HOST is set to my domain.
My current Apache reverse proxy setup sets ProxyPass, ProxyPassReverse, ProxyPreserveHost On
Is there a way to set an UNA_HTTPS_HOST ?
Thanks in advance!
Comments
R
Well - I found a way around this problem, but it won't survive a container update.
I opened a shell into the Una docker container. I installed a text editor. I edited:
/var/www/html/inc/header.inc.php
and manually updated the URL to my https domain.
That's correct, you can also try to run container with UNA_AUTO_HOSTNAME environment set when running it first time, then it will use just current hostname
R
Interesting - I tried that parameter, and it didn't work for me - but I probably checked the site with the local IP first, and then the external URL. If it's set when run the first time, that would explain my issue.