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 am attempting to configure Nginx to run my flask/python application on a Linux Centos 7 server. I am getting a Bad Gateway 502 error. I am new to using Nginx so I am hoping I am going the right direction. Here are my files. Error message [error] 91680#0: *23 connect() to unix:/var/www/MyApp/MyApp.sock failed (111: Connection refused) while connecting to upstream, client: 204.235.114.162, server: _, request: “GET /favicon.ico HTTP/1.1”, upstream: “uwsgi://unix:/var/www/MyApp/MyApp.sock:”, host: “00.106.228.85”, referrer: “http://ip.address/MyApp/run.py”
MyApp.ini*
[uwsgi] module = wsgi
master = true processes = 5
MyApp.sock
[uwsgi] module = wsgi
master = true processes = 5
socket = MyApp.sock chmod-socket = 664 vacuum = true
die-on-term = true
Nginx.Conf*
server { listen 8000; server_name 78.105.158.68;
location / { include uwsgi_params; uwsgi_pass unix:/var/www/MyApp/MyApp.sock; } }
server { listen 80 default_server; listen [::]:80 default_server; server_name _; root /var/www/MyApp; }
location / { uwsgi_pass unix:/var/www/myapp/MyApp/MyApp.sock; uwsgi_param UWSGI_TOUCH_RELOAD /var/www/MyApp/MyApp.sock; include uwsgi_params;
ebeecroft
68aa2215160846bca0a00f952c5fdc
009fd274aeae48f2bfbda6ef568676
Cloudstream Apk
032f50ee7f7d489db3b05e204fe139
032f50ee7f7d489db3b05e204fe139
Edward Sitarski
ebeecroft
dashan
34bcef38725b4e6eb5224ae028f17e