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?

  • I got it working be replacing



    Code
    proxy_pass https://$upstream_nextcloud:443;

    with



    Code
    proxy_pass https://192.168.0.111:444;


    Still, but be great to find out the reason for the problem. Just doesn't feel right, when the defaults don't work ;)

  • 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.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!