[Web-SIG] serving (potentially large) files through wsgi?

Manlio Perillo manlio_perillo at libero.it
Mon Dec 17 19:33:58 CET 2007

Ian Bicking ha scritto:
> [...]
> The user shouldn't have to anticipate what an application can or should 
> do, beyond what the spec says.  

I disagree.

The intent of mod_wsgi for nginx, among other things, is to have an 
"integrated" deployment platform for running WSGI applications;
so the nginx server configuration *is* the WSGI application configuration.

With mod_wsgi for nginx, you don't run a WSGI application inside the 
nginx server, you just use[1] the nginx server for handling the HTTP 

It is a subtle but significative difference, IMHO.
I'm using nginx because writing an HTTP server is hard, very hard, and 
it is much simpler to embed the Python interpreter inside an exiting 
HTTP server.

[1] You may also say "abuse", since the WSGI application will usually
     block the nginx main cycle.

 > [...]

Manlio Perillo

More information about the Web-SIG mailing list