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
1
vote
1 answer

Setting up Django + nginx + uwsgi + supervisord: Difference between sockets in /run vs /tmp

I'm trying to set up 2 Django web apps on the same machine using uWSGI emperor and nginx and have supervisord manage the starting and restarting of the emperor process. I have finally after a lot of searching on the internet managed to get a working…
krypto07
  • 113
  • 4
1
vote
1 answer

Nginx: use uwsgi_pass with a proxy_pass fallback?

Is it possible to configure Nginx to proxy to a uwsgi server (uwsgi_pass), falling back to a standard http proxy (proxy_pass) if the uwsgi server is not available? My development environment runs as a standard HTTP server on a given port, but in…
ibrewster
  • 387
  • 1
  • 4
  • 16
1
vote
0 answers

Serve Flask applications like PHP scripts

On most webserver configurations, .php files are automatically processed when a user accesses a php file, using php-fpm. I'd like to do a similar thing for Flask apps on my nginx server, so that when a user accesses a .py file or a directory with an…
Luke Taylor
  • 151
  • 7
1
vote
1 answer

nginx connect to socket failed no file or directory with django and uwsgi

I am trying to deploy a django web app using nginx and uwsgi using this tutorial : Digital Ocean. I followed the tutorial step by step and these are my configuration files: /etc/uwsgi/sites/picknbox.ini: [uwsgi] project = picknbox # Virtual…
Manish Gupta
  • 113
  • 1
  • 6
1
vote
1 answer

Django uwsgi deploy. Unable to find 'application'

Has a problem when starting uwsgi: unable to find "application" callable in file dashboard/wsgi.py unable to load app 0 (mountpoint='') (callable not found or import error) uwsgi.ini: [uwsgi] socket = /tmp/dashboard.sock chdir =…
gr4k
  • 121
  • 2
  • 6
1
vote
1 answer

Running a python script on Nginx

This question might sound a bit odd to the people hanging out here, but i am just trying to start learning server side programming Is it possible to run a python script directly in a Nginx server just by replacing root /usr/share/nginx/html; …
srj0408
  • 25
  • 1
  • 1
  • 6
1
vote
0 answers

start: Job failed to start UWSGI,

Trying to configure ubuntu+nginx+uwsgi+django upstart script /etc/init/uwsgi.conf description "uWSGI application server in Emperor mode" start on runlevel [2345] stop on runlevel [!2345] setuid voxa setgid www-data exec /usr/local/bin/uwsgi…
Crampus
  • 111
  • 1
1
vote
0 answers

Meaning of each field in uWSGI stats

As the official doc says, uWSGI allows us to get statistic data by JSON format, such as the following: { "version":"2.0.12", "listen_queue":0, "listen_queue_errors":0, "signal_queue":0, "load":0, "pid":1, "uid":1000, "gid":0, …
1
vote
0 answers

nginx won't connect to my socket due to insufficient permissions

I have the following setup for nginx and uwsgi to serve a cgit instance. # cat /etc/uwsgi.d/cgit.ini [uwsgi] plugins = cgi uid = nginx gid = nginx socket = /srv/http/cgit/cgit.sock procname-master = uwsgi cgit processes = 1 threads = 2 cgi =…
janoliver
  • 133
  • 1
  • 8
1
vote
2 answers

Switch between proxy_pass and uwsgi_pass based on cookie?

My nginx server is currently setup to serve all requests via uwsgi_pass: location / { uwsgi_pass unix:///tmp/uwsgi-zerocater.sock; include uwsgi_params; uwsgi_read_timeout 7200; client_max_body_size 20M; } In my application code, I've set a…
neezer
  • 810
  • 3
  • 12
  • 29
1
vote
0 answers

can't start systemd in debian wheezy

I am using Debian Wheezy 7.8, and I want to start uwsgi as a service. I installed systemd (apt-get install systemd) and I edited grub (vim /etc/default/grub) and updated this line: GRUB_CMDLINE_LINUX_DEFAULT="quiet init=/bin/systemd" I updated the…
xpanta
  • 159
  • 2
  • 10
1
vote
0 answers

Nginx can't speak with uwsgi (prematurely closed connection)

What I'm missing in my nginx/uwsgi/php-embed configuration? rpm -qa|grep…
mpapec
  • 313
  • 3
  • 13
1
vote
1 answer

Piwik + uWSGI setup

I have a problem setting up uWSGI+piwik using nginx. My configuration follows this blog entry. My uwsgi ini file looks like this [uwsgi] plugins = php chown-socket = www-data:www-data uid = piwik gid = piwik processes = 1 …
1
vote
1 answer

How to achieve privilege separation between multiple services (e.g. uwsgi) proxied by nginx?

One website I maintain is composed of multiple local applications, all proxied by the same nginx instance. Each application is running under its own user and exposing a unix socket writable by the web server group www-data. All application users are…
anx
  • 8,963
  • 5
  • 24
  • 48
1
vote
1 answer

nginx - serve only with backend or 404, no static files in root

I am trying to serve all requests with the backend (uwsgi for flask in this case) and if the backend has no such path, nginx should return 404. Somehow I only can get the backend to take over when I use try_files $uri @uwsgi; But that way, you…
Sebastian
  • 113
  • 1
  • 5