WebFaction
Community site: login faq

I notice that the version of nginx used on my server supports directly passing requests to uwsgi. Would you consider allowing us to be able to create a new type of app that gets requests proxied from the shared nginx instance via the uwsgi protocol instead of http?

I see that I could run my own nginx+uwsgi or could run uwsgi alone using it's own http listener/parser, but the uwsgi documentation states that using their carefully designed uwsgi protocol for proxying requests from the shared nginx instance will be more efficient and powerful than using http.

See a previous request for this same thing, made when the servers had an older version of nginx: http://forum.webfaction.com/viewtopic.php?id=4927

asked 13 Oct '11, 12:06

Braden
111
accept rate: 0%

I had bad experiences (problems with url encoding) with running uwsgi alone as an http server. That's why I compiled a minimal nginx server. it will use around 2mb rss memory.

(18 Oct '11, 09:45) marcel

No, the front-end nginx server is a proxy server that listens on a specified port. It is in place to only perform as a proxy server, any user-space server you want to run behind it you must provide the whole stack. To allow access to 'CGI-like' or other application interfaces would cause way to many issues.

permanent link

answered 13 Oct '11, 17:35

johns
5.4k312
accept rate: 23%

you can use the uWSGI 1.0-rc2 release, it includes a better url decoder both in --http and --http-socket mode (you should use the second one on webfaction)

permanent link

answered 23 Oct '11, 05:52

unbit
111
accept rate: 0%

Do you have any idea of the performance of uwsgi using --http-socket vs putting it behind nginx and using -socket? I'm considering making a custom app listening on port in webfaction and directly using --http-socket but if installing my own instance of nginx is a good idea I'll probably just do that.

(18 Jan '12, 22:31) joshcartme
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×186
×17
×5

question asked: 13 Oct '11, 12:06

question was seen: 4,799 times

last updated: 18 Jan '12, 22:31

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM