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 looked everywhere for this but didn’t find any answer
I have an application, and I decided to run almost every blueprint in its own subdomain … static ones. example:
admin.domain.com > admin interface
security.domain.com > anything user related, login log out register …etc
api.domain.com > api
domain.com and www.domain.com > normal app
now I know for a fact that my code works perfectly fine, because when I test it using:
python run.py
flask run
uwsgi --socket 0.0.0.0:5000 --protocol=http -w run:app
it worked just fine with the intended result
I am usingubuntu 16.04 if it matters. while testing, I set SERVER_NAME to domain.com:5000. but now since I want to to run in production I changed it to domain.com but it still not working
here are my files:
[uwsgi]
module = run:app
master = true
processes = 5
socket = myrpoject.sock
chmod-socket = 660
vacuum = true
die-on-term = true
server {
listen 80;
server_name MY_IP domain.com www.domain.com;
location / {
include uwsgi_params;
uwsgi_pass unix:///home/gin/myproject/myproject.sock;
}
location ^~ /static/ {
include /etc/nginx/mime.types;
root /home/gin/myproject/app/;
}
}
[Unit]
Description=uWSGI instance to serve myproject
After=network.target
[Service]
User=gin
Group=www-data
WorkingDirectory=/home/gin/myproject
Environment="PATH=/home/gin/myproject/venv/bin"
ExecStart=/home/gin/myproject/venv/bin/uwsgi --ini uwsgi.ini --uid gin --gid www-data
[Install]
WantedBy=multi-user.target
and finally my digitalocean droplets without ns:
Type Hostname Value TTL (seconds)
A security.domain.com directs to MY_IP 80
A admin.domain.com directs to MY_IP 80
A api.domain.com directs to MY_IP 80
A www.domain.com directs to MY_IP 80
A domain.com directs to MY_IP 80
I tried setting www as CNAME but nothing really changed
Right now with these config:
www.domain.com and domain.com both works, everything works as intended
subdomains don’t work at all, they instead redirect to “welcome to nginx” page
ebeecroft
68aa2215160846bca0a00f952c5fdc
009fd274aeae48f2bfbda6ef568676
Cloudstream Apk
032f50ee7f7d489db3b05e204fe139
032f50ee7f7d489db3b05e204fe139
Edward Sitarski
ebeecroft
dashan
34bcef38725b4e6eb5224ae028f17e