> Guys, I have followed the cookbook, the posts here, and a posting at > stackoverflow. > > I am getting error 502 bad gateway. My stuff looks like everyone else's > but there are deeper layers of indirection in uwsgi itself and nginx. I > have several uwsgi sym links in /etc/init.d It is not clear which is > the > "real" one and how to invoke it. > > Here is the error from the nginx log. I guess I interpret this to mean > that nginx can't find uwsgi: > > 2012/05/16 22:53:29 [error] 2460#0: *1 connect() failed (111: Connection > refused) while connecting to upstream, client: 76.104.195.84, server: > www.lewcl.com, request: "GET / HTTP/1.1", upstream: > "uwsgi://127.0.0.1:9001", host: "www.lewcl.com" > > I have no clue what to do.
Have you followed my previous advice of starting with uWSGI quickstart ? http://projects.unbit.it/uwsgi/wiki/Quickstart If you are able to follow it, then adding a webserver should be a pretty easy task (and yesterday, uWSGI got https support so you do not even need a full webserver for simple deployments) automagic-script are not the best way to learn. And i really hope you want to learn, because if you blindly cut&paste you will be in serious trouble when something will go wrong (and things always go wrong soon or later). By the way, i am happy you offered help in improving docs, a lot of users tend to only rant forgetting they are using something for free, and helping in something "annoying" like writing docs is always appreciated. -- Roberto De Ioris http://unbit.it