I can't access my website on https://127.0.0.1:10000

Hello,
I want to create development server. I have container with NGINX installed.

After executing lxc config device add ezd nginx proxy listen=tcp:127.0.0.1:443 connect=tcp:127.0.0.1:10000, my server is available inside container

root@first:~# curl https://localhost
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

but its not available in browser on host machine:

curl https://127.0.0.1:10000
curl: (7) Failed to connect to 127.0.0.1 port 10000: Connection refused

Why I cant see my website?

lxc version is:

lxc --version
3.0.3

You configured it the wrong way around.

1 Like

This command listens on localhost (on the host) at port 443, and connects to the container at localhost on port 10000.

See more about these at https://blog.simos.info/how-to-use-the-lxd-proxy-device-to-map-ports-between-the-host-and-the-containers/

1 Like