Questions tagged [uwsgi]

Questions regarding uWSGI which is a full stack for building hosting services

The uWSGI project

The uWSGI project aims at developing a full stack for building hosting services.

Application servers (for various programming languages and protocols), proxies, process managers and monitors are all implemented using a common api and a common configuration style.

Thanks to its pluggable architecture it can be extended to support more platforms and languages.

Currently, you can write plugins in C, C++ and Objective-C.

The “WSGI” part in the name is a tribute to the namesake Python standard, as it has been the first developed plugin for the project.

Versatility, performance, low-resource usage and reliability are the strengths of the project (and the only rules followed).

Github Docs

346 questions
0
votes
1 answer

Apache , uwsgi , django lookup time

I have my setup hosted in AWS EC2, on am ubuntu machine, running a django server with uwsgi and apache. I've been trying to figure out for a while why the dev env VS local env have such different performance. With local server i return my index.html…
pedrotorres
  • 101
  • 2
0
votes
1 answer

Nginx fails to pass the traffic to the Flask application and uwsgi

I am trying to deploy a Flask and uwsgi application with Nginx, everything is working and I can get my application to work on my domain: test.example.com:8080. The problem is I can't make it work under the default port 80, I get the following error…
Madno
  • 203
  • 4
  • 16
0
votes
3 answers

Nginx and uWSGI Flask app Connection Refused

Trying to set up a Flask application with uWSGI and Nginx. I keep getting a 502 Bad Gateway error (as far as I know this means uWSGI and Nginx can't communicate correctly) This is the line that keeps showing up in my /var/log/nginx/error.log:…
Kyle Calica-St
  • 103
  • 1
  • 6
0
votes
1 answer

Setting up Django on web server with nginx and uWSGI

I am following this guide in order to set up one Django app with nginx. I have installed Nginx and I can access it on 127.0.0.1 or 127.0.0.1:80. I have this configuration file: upstream django { # connect to this socket server…
Denis V
  • 111
  • 4
0
votes
1 answer

Configuring Nginx to serve a UWSGI app from a location under a nodejs server block

I have a UWSGI Django API running which is configured like this in NGINX: upstream django_api { …
FrozenHG
  • 1
  • 3
0
votes
0 answers

elastic beanstalk docker nginx uwsgi django in same container giving 502 bad gateway error

I'm deploying a django application in elastic beanstalk and docker using nginx and uwsgi. Below is the Dockerfile: FROM ubuntu:14.04 MAINTAINER Nijo James # Update packages RUN apt-get update -y #Install python Setuptools RUN apt-get install -y…
Nijo
  • 202
  • 3
  • 11
0
votes
1 answer

Would I need uWSGI for a application or Nginix will suffice?

According to official uWSGI docs : A web server faces the outside world. It can serve files (HTML, images, CSS, etc) directly from the file system. However, it can’t talk directly to Django applications; it needs something that will run the…
0
votes
0 answers

NGINX proxy keeps losing connection to uWSGI backend

I've got a Docker NGINX host serving static web pages, and proxying to a Docker uWSGI backend. After a couple errors, I start getting 500s from the website. Looking at the NGINX logs, I see: nwm-nginx-1 | 2016-05-04T10:19:07.911553394Z 2016/05/04…
Chris B.
  • 337
  • 1
  • 8
  • 18
0
votes
2 answers

How do I configure a whitelist of SSL/TLS protocols in uWSGI?

I can specify a list of ciphers using https = =0,x.crt,x.key,. Documentation for that is here: http://uwsgi-docs.readthedocs.org/en/latest/HTTPS.html#setting-ssl-tls-ciphers But is there also a way to specify which SSL/TLS protocols are…
Blaise
  • 103
  • 4
0
votes
0 answers

Setting up a sub-domain to point to a flask application on same digital ocean droplet (with uwsgi and nginx on Ubuntu 15.10)

I have a domain called abc.com which points to a static html page, in /var/www/abc.com/public_html. I want to host a Flask application on same droplet (different port maybe?), which is accessible using a subdomain demo.abc.com. I followed…
kampta
  • 101
  • 4
0
votes
1 answer

Configure basic python 3.5, flask, uwsgi, nginx app

Not sure where I am going wrong here, all I get is a 502 bad gateway. (server ip is 104.197.13.112) The code for all the configuration files and basic app are in a github repo. github repo nginx seems to start correctly, uwsgi does not and I think…
Vincent
  • 101
  • 3
0
votes
1 answer

502 Bad gateway - nginx, uwsgi+django in seperate docker containers

Im having a little difficulty determining why nginx and uwsgi arent working to serve my django app. Here is the problem from the nginx log. nginx-01: 2015/12/06 07:47:50 [error] 10#0: *1 connect() failed (111: Connection refused) while…
Deep
  • 103
  • 1
  • 4
0
votes
0 answers

Nginx / Uwsgi cache configuration

I have the following Nginx cache site.conf file: uwsgi_cache_path /home/ubuntu/cache levels=1:2 keys_zone=one:10m; server { listen 80; server_name genelizleyici.com; location /api/tweets/ { uwsgi_cache one; …
onurmatik
  • 101
  • 2
0
votes
1 answer

Setup nginx + uwsgi on a server with existing apache

I have an existing server running a domain using apache. (php) Now we have another domain we're trying to run on that same server that we want to run using nginx and uwsgi (python). Also should I run this python project from virtualenv? Is it even…
teepusink
  • 121
  • 3
0
votes
1 answer

root location of Flask app returns 403 on nginx server

I've seen other posts say that either file permissions or the lack of an index directive are the cause. However, my Flask application does not have an index file at all, and most of the site works like a charm. nginx.conf server { listen …
Chockomonkey
  • 2,683
  • 3
  • 11
  • 10