Let's Encrypt > NextCloud reverse proxy issues (Bad Gateway / host not found)

  • I have following nextcloud subdomain config in the let's encrypt docker:



    But as a result I get following error message:


    Code
    2019/07/11 15:11:42 [error] 369#369: *5 nextcloud could not be resolved (3: Host not found), client: 192.168.0.1, server: get.acme.net, request: "GET /favicon.ico HTTP/2.0", host: "get.acme.net", referrer: "https://get.acme.net/"



    What could be the reason?
    Why is the "nextcloud" host not found?

  • Probably the letsencrypt docker does not find the nextcloud docker under its name. This should be resided but the docker internal dns service but only works if the containers share the same docker network. Is your nextcloud docker named "nextcloud" and is it joined in a docker network with the letsencrypt container?

  • Probably the letsencrypt docker does not find the nextcloud docker under its name. This should be resided but the docker internal dns service but only works if the containers share the same docker network. Is your nextcloud docker named "nextcloud" and is it joined in a docker network with the letsencrypt container?


    Thank you! I think that might have been the reason.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!