I am experimenting with apache2 websites running within LXD containers. I can access the websites from
the internet, however one of the functions of the website is not working.
I have an iframe on the page that will not connect. The “src” of the iframe is local to the container. So the iframe looks like this:
iframe width=“640” height=“360” src=“http://localhost:3000/Embed/0x35e01199f8137077346fdd476191f1967a52bdb5” frameborder=“0”>/iframe
(note I purposely left off the <> in the iframe tag.)
I am using HAproxy to forward a subdomain URL to access the container. Browsing to it I get:
Unable to connect
Firefox can’t establish a connection to the server at localhost:3000.
Any ideas why this is happening?