I have following nextcloud subdomain config in the let's encrypt docker:
Code
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name get.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nextcloud nextcloud;
#proxy_max_temp_file_size 2048m;
proxy_max_temp_file_size 1924m;
proxy_pass https://$upstream_nextcloud:443;
}
}
Alles anzeigen
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?