Questions tagged [wsgi]

Web Server Gateway Interface is a specification for web servers and application servers to communicate with web applications. It is a Python standard, described in detail in PEP 333.

WSGI is the Web Server Gateway Interface. It is a specification for web servers and application servers to communicate with web applications (though it can also be used for more than that). It is a Python standard, described in detail in PEP 333.

124 questions
21
votes
1 answer

Recommended Nginx + WSGI Configurations

Please explain pros/cons when using the different Nginx WSGI interfaces? Please explain in detail what differentiates each configuration? Which configuration should scale the best? If relevant, what are you running right now, and why? Some…
cmcginty
  • 1,263
  • 15
  • 24
16
votes
2 answers

Wiring uWSGI to work with Django and nginx on Ubuntu 16.04

I am trying to follow this tutorial to setup uWSGI with Django and nginx on Ubuntu16.04. It all works fine up until the very last step (oh the irony...) where I try to execute this command: sudo service uwsgi start If fails with the following…
Vlad Schnakovszki
  • 563
  • 1
  • 4
  • 12
16
votes
4 answers

Getting client denied when accessing a wsgi graphite script

I'm trying to set up graphite on my Mac OS X 10.7 lion, i've set up apache to call the python graphite script via WSGI, but when i try to access it, i get a forbiden from apache and in the error log. "client denied by server configuration:…
Dr BDO Adams
  • 231
  • 1
  • 2
  • 7
9
votes
1 answer

Apache/wsgi "Script timed out before returning headers"

I have a custom Django app that's becoming unresponsive roughly every 5,000 requests. In the apache logs, I see see the following: Apr 13 11:45:07 www3 apache2[27590]: **successful view render here** ... Apr 13 11:47:11 www3 apache2[24032]: [error]…
Chase Seibert
  • 543
  • 5
  • 11
9
votes
1 answer

Where do I place the WSGIPythonHome directive in the httpd.conf file?

I have searched the entire file for a place to put the directive, but I have no idea where to put it, and the internet doesn't seem to have a good answer either, or maybe I'm just not good at searching for it hehe. Anybody know where this directive…
jasonaburton
  • 263
  • 1
  • 4
  • 9
8
votes
4 answers

gunicorn + django + nginx unix://socket failed (11: Resource temporarily unavailable)

Running very high volume traffic on these servers configured with django, gunicorn, supervisor and nginx. But a lot of times I tend to see 502 errors. So I checked the nginx logs to see what error and this is what is recorded: [error] 2388#0:…
user1068118
  • 81
  • 1
  • 4
8
votes
1 answer

Python/Django/WSGI/Apache - "ImportError: No module named site"

I am trying to use a django application on my local ubuntu machine. However the site doesn't work and my /var/log/apache2/errors.log is filled with messages like this: ImportError: No module named site My /var/log/apache2/error.log (for today)…
Amandasaurus
  • 30,211
  • 62
  • 184
  • 246
7
votes
2 answers

uWSGI cannot find "application" using Flask and Virtualenv

Using uWSGI to serve a simple wsgi app, (a simple "Hello, World") my configuration works, but when I try to run a Flask app, I get this in uWSGI's error logs: current working directory: /opt/python-env/coefficient/lib/python2.6/site-packages writing…
skyler
  • 465
  • 3
  • 7
  • 17
7
votes
1 answer

How to get nginx to pass HTTP_AUTHORIZATION header to Apache

Am using Nginx as a reverse proxy to an Apache server that uses HTTP Auth. For some reason, I can't get the HTTP_AUTHORIZATION header through to Apache, it seems to get filtered out by Nginx. Hence, no requests can authenticate. Note that the…
codeinthehole
  • 313
  • 2
  • 6
  • 10
7
votes
3 answers

How can I install wsgi on CentOS using yum?

How can I install wsgi on CentOS using yum? Is there any repository with mod_wsgi?
sorin
  • 7,668
  • 24
  • 75
  • 100
6
votes
2 answers

Why put a reverse proxy in front of a WSGI server?

A typical configuration for deploying a WSGI application includes a WSGI server (such as uWSGI or Gunicorn) behind a general-purpose web server (like nginx) that acts as a reverse proxy. One major reason I know for having a reverse proxy is to serve…
Vasiliy Faronov
  • 215
  • 2
  • 5
5
votes
1 answer

How to have apache handle .well-known/acme-challenge and still have / passed to wsgi

In order to support automatic LetsEncrypt certificate renewal certbot uses the --apache handler. e.g. certbot renew --apache This handler installs a temporary VirtualHost for */.well-known/acme-challenge/ on the Apache server in order authenticate…
Jay M
  • 358
  • 4
  • 10
5
votes
1 answer

How do I debug this Nginx to uWSGI timeout?

I'm running a database-backed web site that receives very little traffic. However, once or twice day, a request will timeout and I'll see this (or a similar) error in Nginx's error.log: 2013/06/13 18:32:40 [error] 16723#0: *27796 upstream timed out…
skyler
  • 465
  • 3
  • 7
  • 17
5
votes
1 answer

Upstart vs Supervisord to manage WSGI processes

Thoughts? I'm running Ubuntu 10.0.4
Dick Brouwer
  • 151
  • 3
5
votes
1 answer

how to configure ISPConfig for mod_python or mod_wsgi?

how to configure ISPConfig for mod_python or mod_wsgi for django like apps deployement?
shahjapan
  • 131
  • 1
  • 13
1
2 3
8 9