Answer the question
In order to leave comments, you need to log in
At the time of launching nginx, the network is not yet available. How to decide?
When restarting the server, judging by the logs
nginx: [emerg] host not found in upstream "example.com" in /etc/nginx/sites-enabled/example.com.nginx.conf:30
location / {
proxy_pass https://example.com:666;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question