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.

learn more… | top users | synonyms

19
votes
1answer
2k views

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 ...
5
votes
1answer
1k views

Upstart vs Supervisord to manage WSGI processes

Thoughts? I'm running Ubuntu 10.0.4
5
votes
1answer
3k views

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 ...
5
votes
1answer
3k views

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** ...
4
votes
4answers
3k views

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. ...
4
votes
1answer
2k views

UWSGI and NGINX for Python Apps on Ubuntu 11.10

I am trying to find an optimal way to set up my server to use NGINX and UWSGI to serve python applications. The following has worked so far: Initial setup: sudo apt-get install nginx uwsgi ...
4
votes
1answer
1k views

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?
3
votes
1answer
2k views

Nginx + Django + FastCGI WSGI error? (Non fatal)

Hi everyone I am running django on top of nginx with fastcgi. When i do runfcgi, I am seeing these errors: python manage.py runfcgi daemonize=false host=127.0.0.1 port=8000 WSGIServer: missing ...
3
votes
2answers
256 views

Python Django sites on Apache+mod_wsgi with nginx proxy: highly fluctuating performance

I have an Ubuntu 10.04 box running several dozen Python Django sites using mod_wsgi (embedded mode; the faster mode, if properly configured). Performance highly fluctuates. Sometimes fast, sometimes ...
3
votes
2answers
561 views

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 ...
3
votes
1answer
7k views

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 ...
3
votes
1answer
322 views

Django + Apache + mod_wsgi: Why is wsgi script executed multiple times?

I'm relatively new to all the server technology and I followed this tutorial to deploy my django app on an Apache Webserver, using mod_wsgi: ...
3
votes
2answers
1k views

Attempting to run Django with start Apache2 mod_wsgi on Ubuntu Lucid Lynx without success

I have a small vps with a minimum install of ubuntu lucid-lynx with about 256mb memory, it's newly installed with nothing special running on it. I'm trying to deploy django to it, while I'm ...
3
votes
2answers
732 views

Apache mpm worker + wsgi Python/Django workers stuck

Our Apache+Django server has the problem that workers get stuck. It's an mpm worker model, and after some time, each process that serves some dozen worker threads has all its workers frozen: # ...
3
votes
1answer
492 views

Apache Benchmark is slow from public network, magnitudes faster locally. What are some things I do to speed this up?

I am testing my Linode Ubuntu 14 64bit server out, it's the most basic server available from them. I am using Apache Benchmark to test the server, as well as a multithreaded script I wrote in Python, ...
2
votes
2answers
770 views

wsgi and python print statements

I have become aware that the print statements in my django app are causing wsgi to error and fail. Without going over all my code and removing/commenting out the print statements, is there a way I can ...
2
votes
1answer
278 views

What's the difference between WSGI <app> and <module>?

I followed these instructions to serve Python (Web2Py) via uWSGI. However, the web server returned an error: uWSGI Error Python application not found until I modified the config.xml config ...
2
votes
1answer
689 views

WSGIDaemonProcess: specifying a user

I have a user account all set up for this Python webapp I'm deploying with mod_wsgi. It's super-unprivileged, and only gets to read from the appdir and write to a separate set of tempdirs which no one ...
2
votes
1answer
672 views

How can I control log messages for Apache (specifically, auth_mysql module & WSGI)?

On an Ubuntu 10.04 server w/ Apache2, I have auth_mysql turned on, and I am getting [debug] messages showing up. How can I turn these off? I'm guessing there is a way to turn this off for the ...
2
votes
1answer
875 views

Mutli-Site uWSGI config

I have about a dozen small Django sites I want to run using Nginx and uWSGI. They are on a 4-core server with 8 gigs of ram. Should each site be configured on its own socket and how can I control the ...
2
votes
1answer
481 views

Django Deploy Reccomendations

I have a Web application provided in SaaS way... (each client has his own sub-domain and his own database). My app uses Django Python and Postgresql. Right now is hosted on a linux shared hosting ...
2
votes
2answers
1k views

How do I get Apache to run Python 2.7 rather than 2.5?

How do I get Apache to run 2.7 rather than 2.5? I'm configuring Apache to use mod_wsgi with Django and Python 2.7, but error logs show Apache is using Python 2.5.2 and can't find ...
2
votes
1answer
4k views

HTTP 500 error from POST reuqest to django vai WSGI and apache

Ive got a Django web application setup with mod_wsgi and apache2 on ubuntu 9.10 Im using the following code to o a user authentication via a HTTP post for another part of my site. All it required ...
2
votes
1answer
322 views

IPC overhead in a (nginx -> uwsgi -> wsgi application) architecture?

Recently I'm setting up some Python website and it seems the architecture nginx -> uwsgi -> wsgi application is an obvious choice in Python world these days. (Actually I'm migrating a MoinMoin ...
2
votes
1answer
1k views

Graphite not running

I'm currently trying to install graphite 0.9.9 on a gentoo box using these instructions from the graphite wiki. Essentially, it fronts graphite using apache and mod_wsgi. Everything seems to have ...
1
vote
3answers
244 views

WSGI cannot access a file, but permissions are correct

I am debugging a problem where MoinMoin on CentOS is throwing a permissions error, but I can't track down where the problematic file / directory is. I ran strace -vp <pid> on the apache pid; ...
1
vote
3answers
589 views

Python app server & web server co-existing?

I have a site example.com that runs off a 'normal' web server ie at the moment Apache but looking to go for a less RAM intensive alternative in future so I don't want mod_WSGI on apache. Shortly I ...
1
vote
4answers
2k views

Nginx + uWSGI on a fresh Ubuntu install - bind error port 80

I know this is a common problem usually having to do with apache or another service already running on port 80 and I have done a lot of searching and running netstat and still have not figured out why ...
1
vote
3answers
6k views

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?
1
vote
2answers
74 views

Experienced Lagging Issue on 2 x 2 MBps E1 link

From client pc to server (Windows Server 2008), the WAN connection is using 2 x 2 MBps E1 link. 1 <1ms <1ms <1ms 10.101.7.254 2 4ms 15ms 4ms ...
1
vote
3answers
2k views

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 ...
1
vote
1answer
1k views

Nginx with site build on Pyramid framework (Python): how to configure?

I have wrote site on Pyramid framework (Python) and bought VPS (OpenVZ technology) server. I'm new to server administration and there is no much docs on how to configure Nginx with Python and ...
1
vote
2answers
67 views

mod_wsgi fail-through to wordpress?

We use apache, mod_php, and mod_wsgi to serve a central wordpress site, with some paths instead powered by Django, so for example these pages might be powered by Wordpress: oursite.com/ ...
1
vote
1answer
3k views

PassEnv does not find ENV variables

I've got this /etc/profile.d/myfile.sh: export MYVAR=myval I also have a PassEnv MYVAR line in a <virtualhost> section of an apache conf dir. That lets me do things like: $ echo $MYVAR ...
1
vote
2answers
904 views

Apache - Difference between ScriptAlias and WSGIScriptAlias

I'm using apache on RHEL Linux server In my /etc/httpd/conf.d/httpd.conf there are two directives: WSGIScriptAlias /apps /var/www/apps <Directory /var/www/apps > Options MultiViews ExecCGI ...
1
vote
2answers
2k views

How to run Django 1.3/1.4 on uWSGI on nginx on EC2 (Apache2 works)

I am posting a question on behalf of my administrator. Basically he wants to set up Django app (made on Django 1.3, but will be moving to Django 1.4, so it should not really matter which one of these ...
1
vote
1answer
369 views

Django WSGI application in a subdirectory?

Recently, I wanted to put one of my WSGI applications into a subdirectory, so that the other directories that cointain various scripts would work as before. In order to do that, I added the following ...
1
vote
1answer
2k views

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 ...
1
vote
1answer
1k views

Apache running Python with mod_wsgi

I need help setting up a local Apache2 to run Python. Got it to work just fine with html, php and mysql on my Mac running Mountain Lion. Python running. Installed mod_wsgi through MacPorts and ...
1
vote
1answer
259 views

Access content via a LAN connected machine which is Django-WSGI-Apache configured

I configured my system to be able to deploy Django stuff using Apache on my machine(Ubuntu 11.10).I followed the instructions given at ...
1
vote
1answer
57 views

How to configure Apache WSGI for Python to serve only non-existing files?

I would like to setup Django with WSGI and Apache on root (/) of the website, but I would like that Apache servers through WSGI (and Django) only those URLs which do not have corresponding file to ...
1
vote
1answer
416 views

Re: How can Django/WSGI and PHP share / on Apache?

in response to: How can Django/WSGI and PHP share / on Apache? Hello, could you please post the complete config file from /sites-available I am having a problem seems like rewrite engine redirects ...
1
vote
0answers
59 views

Configuring mod_wsgi daemon mode processes and threads

I am planning to use mpm_worker or mpm_event with daemon mode of mod_wsgi. How to configure processes and threads of WSGIDaemonProcess directive for the optimal performance of apache 2.4.9
1
vote
0answers
62 views

Django wsgi and mod_pagespeed not working

I installed mod_pagespeed on my server and it's working as far as the page header is concerned: X-Mod-Pagespeed:1.7.30.5-3847 The problem is that it's doing nothing else. No whitespace or comment ...
1
vote
2answers
442 views

Tuning django based site deployed using apache wsgi for better performance

I'm running django application using apache+mod_wsgi, I have setup 6 medium ubuntu servers on Amazon ec2 in which 2 for mongo and 4 for django and apache, using ebs for postgresql and configured a ...
1
vote
1answer
268 views

Python, IIS scripts, and user accounts

This isn't a question on my specific problem, as I've got that more or less solved, but about IIS/Python and user accounts in general. I have python scripts that I'm running with IIS 7.5 (Mercurial ...
1
vote
1answer
136 views

How do you implement mod_wsgi on web servers?

All of the documentation I've seen outlines the process for self-managed Apache configuration. I currently have my site hosted through Media Temple. Is it possible to configure WSGI for these types of ...
1
vote
0answers
128 views

Django - can't get production web server running

I'm trying to deploy a Django app in production, on an apache server, using mod-wsgi. mod-wsgi is installed and working fine. When I run the Django server, it launches fine, but I can't access it on ...
1
vote
1answer
165 views

WSGI: get status 200 OK instead of 404

what's wrong with the following WSGI setup based on Apache 2.2, Windows and mod_wsgi 3.3? The problem is that the client gets an OK response status even visiting URLs that don't have an associated ...
1
vote
1answer
228 views

Django hosting on Windows server

I'm running in a "Windows only" environment. We have a few linux boxes but we're not allowed to use Linux in our DMZ (something about it being less secure. ha.) We're currently developing a couple of ...