Welcome! Log In Create A New Profile

Advanced

RE: Nginx and uwsgi

All files from this thread

File Name File Size   Posted by Date  
1.9 KB open | download Biswas, Pinakee 06/11/2012 Read message
168 bytes open | download Biswas, Pinakee 06/11/2012 Read message
Biswas, Pinakee
June 11, 2012 10:02AM
Hi Roberto,

Thanks for the prompt response. That really helps.

Our major consideration for going with Nginx is performance.
If we have another process running (a wsgi server with python application) and nginx working as a proxy translating HTTP requests to another protocol (uwsgi, http or fastcgi), won't that be an overhead?
I was under the impression that the Python application can be embedded in Nginx using Wsgi.

We would really appreciate your thoughts/suggestions on the above.

Looking forward to your response...

Thanks,
Pinakee Biswas
Director & CTO


Just watch it !

FE- Mail: pinakee@vvidiacom.com I IWeb: http://www.vvidiacom.com


 Please don't print this e-mail unless you really need to, this will preserve trees on planet earth.
----------------------------Disclaimer-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The information contained in this message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and permanently delete this message and any attachments from your system. Please note that e-mails are susceptible to change and malwares. VVIDIA COMMUNICATIONS PVT LTD. (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system.
-------------------------------------------------------------------------------------------------------------------------Disclaimer----------------------------------------------------------------------------------------------------------

-----Original Message-----
From: nginx-bounces@nginx.org [mailto:nginx-bounces@nginx.org] On Behalf Of Roberto De Ioris
Sent: 11 June 2012 19:18
To: nginx@nginx.org
Subject: Re: Nginx and uwsgi


> Hi,
>
>
>
> We are building a Media Content Management and Delivery Platform based
> on Python (and python based web framework like Pylons/Pyramid). We are
> planning to use nginx as the web server.
>
>
>
> We are new to nginx (have prior experience with Apache) and have
> downloaded 1.2.1. The OS is CentOS.
>
>
>
> We are not sure how uwsgi works with nginx:
>
> 1. Do we have to start uwsgi as a separate process?


Yes, but remember: uwsgi is a communication protocol (like http or fastcgi), uWSGI is the application server.
You need to start uWSGI, and configure nginx to speak with it with the protocol of choice (uwsgi, http or fastcgi)

>
> 2. There is no option/directives for loading modules in nginx (as it
> is there in Apache).

nginx does not work in that way, but it should be not a problem for you as upstream modules (http, fastcgi, scgi, uwsgi) are compiled in by default.


>
> 3. I couldn't find a good documentation on the uwsgi based
> directives.
> The one in nginx wiki is confusing.

you need nothing particular:

include uwsgi_params;
uwsgi_pass <address>;

all the other options are for fine tuning.

I suggest you to start from here:

http://projects.unbit.it/uwsgi/wiki/Quickstart


>
> Since nginx I think works as a reverse proxy where it forwards HTTP
> requests to the uwsgi process, how about using something like Cherrypy
> or PasteHTTPserver? Would there be any difference?

you can proxy nginx to whatever you want/need if the backend speaks one of the supported protocol (http, scgi, fastcgi, uwsgi)


--
Roberto De Ioris
http://unbit.it

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

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

Nginx and uwsgi Attachments

Biswas, Pinakee June 11, 2012 09:36AM

Re: Nginx and uwsgi

roberto June 11, 2012 09:50AM

RE: Nginx and uwsgi

Biswas, Pinakee June 11, 2012 10:02AM

RE: Nginx and uwsgi

roberto June 11, 2012 02:16PM

Re: Nginx and uwsgi

Manlio Perillo June 12, 2012 09:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 135
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