Welcome! Log In Create A New Profile

Advanced

Re: WSGI Module

Manlio Perillo
August 26, 2010 03:46PM
Il 26/08/2010 11:54, Jurie-Jan Botha ha scritto:
>> You have to manually change the config file, in order modify the python
>> instance to use.
>
> So there's no real easy way.

Right, since a contrib module can not hook into the Nginx configure
script, in order to add new configure variables (like --with-python)

> I'll see what I can get accomplished.
>
>> It will be never an official module.
>>
>> Nginx is not Apache, and executing arbitrary Python code inside a Nginx
>> process should be done very carefully.
>
> I don't know to much about how mod_wsgi works,

It is quite simple.
For each request whose location is handled by the wsgi module, an user
defined Python function is called.

When the Python function is called, an entire process is blocked until
the function return; Nginx process will be not be able to serve other
requests.

This may or may not be a problem, but a lot depends on the Python
application.

The suggested usage is to *always* (unless you know what you are doing)
place a "normal" Nginx instance as frontend, and put the Nginx instance
with the WSGI module as a backend, using the http proxy module.


> but I can understand
> it's use. If not an official 'mod_wsgi' module then something similar
> perhaps?

The only thing similar is the Perl module, that allows you to execute
Perl code inside Nginx.
But the intended usage it to execute small scripts; the intended usage
of the WSGI module is, instead, to execute WSGI applications.

> Perhaps you can point me to something I can read to help me
> understand.
>



Regards Manlio

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

WSGI Module

Jurie-Jan Botha August 17, 2010 02:48AM

Re: WSGI Module

vesperto August 17, 2010 05:22AM

Re: WSGI Module

Jurie-Jan Botha August 17, 2010 11:02AM

Re: WSGI Module

Manlio Perillo August 24, 2010 05:02PM

Re: WSGI Module

Jurie-Jan Botha August 26, 2010 05:58AM

Re: WSGI Module

Manlio Perillo August 26, 2010 03:46PM

Re: WSGI Module

Jurie-Jan Botha September 01, 2010 01:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 321
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready