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.

I have a Django application on an Ubuntu 22.04 droplet with Gunicorn and Nginx. I added DNS for my domain (ifbt.farm), which is resolving to my ip address (24.199.74.74). If I configure nginx with
server_name 24.199.74.74;
and sudo systemctl restart nginx
It proxies the request to Gunicorn correctly so I see my application when I visit https://24.199.74.74
but if I configure it with
server_name ifbt.farm www.ifbt.farm;
and sudo systemctl restart nginx
It gives the ‘Welcome to nginx’ error page when I visit https://ifbt.farm. My Django settings has
ALLOWED_HOSTS = [‘ifbt.farm’, ‘www.ifbt.farm’, ‘24.199.74.74’]
This link on stack overflow notes a similar problem, and the OP solved it by commenting out the server_name line in sites-available/default, which he said was shadowing it. I tried that, but it didn’t change anything in my case.
Thanks for any thoughts on this!
hashembarret@gmail.com
Witomir Łękowski
doug.landau
5350d4b31109448dbeb34a6ffc857a
RuRo
max johnson
rem3n
bo
d.mckinstry
Jim Cason
Charles kubai
Charles kubai