Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
I’m trying to follow this tutorial and since yesterday I got stuck on the very end of the step 5. When typing http://humanai.games I can only see a billboard, not the “Hello, there!” message.
Running the “sudo less /var/log/nginx/error.log” I get the output below:
conflicting server name "humanai.games" on 0.0.0.0:80, ignored
conflicting server name "www.humanai.games" on 0.0.0.0:80, ignored
These domains are already in the digital ocean configuration and pointing to my DO Ubunto server address.
The only environment and configuration I have with these domains are the ones in the tutorial.
Also, when I tried to generate the encryption (step 6) using certbot, it prompts :
Performing the following challenges:
http-01 challenge for humanai.games
http-01 challenge for www.humanai.games
Waiting for verification...
Challenge failed for domain humanai.games
Challenge failed for domain www.humanai.games
http-01 challenge for humanai.games
http-01 challenge for www.humanai.games
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: humanai.games
Type: unauthorized
Detail: Invalid response from
https://humanai.games/.well-known/acme-challenge/PoquxyR5rJuqbPNXLT64mt2-BUnU5FiPwzLQtqum044
[91.195.240.94]: "<!DOCTYPE html><html lang=\"en\"
data-adblockkey=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANnylWw2vLY4hUn9w06zQKbhKBfvjFUCsdFlb6TdQhxb9RXW"
Domain: www.humanai.games
Type: unauthorized
Detail: Invalid response from
https://www.humanai.games/.well-known/acme-challenge/ch1ZkUNUkNlVzwrVUdj5cIzCObfscgoZxMgG_o9OhdE
[91.195.240.94]: "<!DOCTYPE html><html lang=\"en\"
data-adblockkey=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANnylWw2vLY4hUn9w06zQKbhKBfvjFUCsdFlb6TdQhxb9RXW"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
Any help about how can I fix these problems? Have been looking all around the internet forums and no significant progress so far.
Thanks!
Excellent tutorial! I haven’t often read such a professional manual. Thank you.
The proxy_pass directive uses http, but after configuring certbot, the website does use SSL. Is it possible to configure it to use https like in the NGINX Docs or is it not necessary?
https://docs.nginx.com/nginx/admin-guide/security-controls/securing-http-traffic-upstream/
Hello,
I tried following this tutorial and was able to configure the Flask app, it works fine when it is run using gunicorn --bind 0.0.0.0:5000 wsgi:app
However, after configuring my domain name I am getting a 502 Bad Gateway error. While checking the nginx error logs, I see the following-
2021/02/21 10:25:12 [crit] 65880#65880: *1 connect() to unix:/root/dv_sophia_apis/dvsophia/dv_sophia_apis.sock failed (13: Permission denied) while connecting to upstream, client: 103.141.216.115, server: api.digitalvault.in, request: "GET /check HTTP/1.1", upstream: "http://unix:/root/dv_sophia_apis/dvsophia/dv_sophia_apis.sock:/check", host: "api.digitalvault.in"
I have configured the above tutorial using root user and my permissions of all the directories and files under /root is root:www-data
How can I resolve this error? Have being trying to fix since 2 days but unable to get through a solution.
Thanks for this elaborate article.
server_name under server do the job?If you are getting this error “failed (13: Permission denied) while connecting to upstream”
try the following: $sudo usermod -a -G $USER www-data
Hi,
Following through your tutorial up to step 4. However, when I run the gunicorn command , which is gunicorn --bind 0.0.0.0:5000 wsgi:app, sock file doesn’t get created. So, When I check the status of the service, It always shows Activity : failed. What should I do?
When I try to connect to my domain name it doesn’t seem to work. I get the nginx page so it must be redirecting my server but when I enter the IP address into the browser I get the flask app page but when I search the domain name I just get nginx
If anyone is getting a 502 error, some permissions may need to be modified to allow nginx to access the sock file: sudo chown sammy:www-data /home/sammy/myproject/myproject.sock sudo chmod 660 /home/sammy/myproject/myproject.sock sudo chmod 755 /home/sammy
This allows nginx, which runs as www-data, to access sammy’s files. You could also put the socket somewhere nginx already has access to, such as: –bind unix:/run/agents.sock This will require the nginx config to be changed to: proxy_pass http://unix:/run/agents.sock;
Make sure to restart everything to ensure the changes take place.