Comment to 'Beginner questions (and some bugs/feedback)'
  • Thanks for the replies!

    Images not showing up, from the link you sent: To transcode an image or video UNA needs to fetch the original file, UNA tries to get it via URL from the server itself, however if your site can't be loaded from the server itself then it fails. It maybe different way to fix this, but in most cases it helps if you add the following line to /etc/hosts file:

    127.0.0.1 your-una.domain

    I have una in a docker image, with docker container port 80 mapping to external world as 8000 (docker option: -p 8000:80). (apache2 serves on port 80). I have no name for the (docker container/instance) machine, just localhost:8000 from my host computer that runs/hosts docker

    From my host (where I run Firefox), the url is (http) localhost:8000/image_transcoder.php; from within the container, it's :80 instead of :8000.

    How can I get things to work in this scenario?

    I found this in the UNA documentation: environment variable   UNA_HTTP_HOST - UNA hostname, if other than 80 port is used, then it need to be specified here, for example localhost:8000, default - localhost

    Not sure what this means for me, do I set UNA_HTTP_HOST = localhost:8000  or localhost:80? 

    How is this environment variable used by UNA, in what scenario/operations?

    Or possibly do something with iptables?

    • I resolved this situation (where a docker container is serving Una), and am posting it here in case it helps someone else.

      Edit /etc/apache2/ports.conf, add Listen 8000; and edit mysite.conf to: <VirtualHost *:80 *:8000>

      With these changes, within the docker container, localhost:8000 works as well.

      If I were to do this from scratch, I would configure apache2 to server on 8000 only, and docker map 8000->8000, so from within the container and from outside the container, localhost:8000 would be the correct address. I would not need port 80.