Connected Tutorial(This question is a follow-up to this tutorial):
How To Serve Flask Applications with Gunicorn and Nginx on Ubuntu 20.04As i was following through the tutorial (How To Serve Flask Applications with Gunicorn and Nginx on Ubuntu 20.04). Everything is setup. I do not have a domain. I point to the ip URL so in the file this is my entry
server { listen 80; server_name http://54.219.38.215/;
location / {
include proxy_params;
proxy_pass http://unix:/home/ubuntu/apps/visionapp/visionapp.sock;
}
}
now when i browse http://54.219.38.215/ it still points to Welcome to nginx! instead of Hello world
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!
Hi there,
I believe that you should not specify the http:// part for the server name. It should only be:
server_name 54.219.38.215;
Also if you have a default Nginx server block, I would recommend removing it and only leaving the new one that you’ve added. You can remove the default one from the /etc/nginx/sites-enabled directory using the unlink command.
Also, keep in mind that you would need to restart Nginx after the configuration changes.
Best, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.