> I am trying to replace an apache setup with nginx/uwsgi on my home network > as a pilot project for a more formal setup on a server where I am > deploying > an app. > > With the help of people on this list I could change my Webfaction > configuration to nginx/uwsgi but on a plain Debian computer I am making no > progress. > > I am runing Debian unstable on my home computer and Debian stable on the > server. On both I could get the ubuntu-setup script that comes with web2py > to set up apache/web2py successfully. However, the script > setup-web2py-nginx-ubuntu, modified to use Debian packages and paths and > not ubuntu ones, only produces an nginx running and answering with *502 > Bad > Gateway*. > > I then purged all the uwsgi and nginx packages from Debian and tried the > script at > http://stackoverflow.com/questions/5335153/how-to-deply-web2py-using-nginx. > That also ended with *502 Bad Gateway*.:( > > I have read somewhere that nginx is more simple to set up than Apache, but > in this case i have spent several hours reading and trying several setup > scripts and configuration and I got nowhere. > > Are there anybody running a nginx/uwsgi/web2py setup on Debian? If so, > are > you willing to share some knowledge that can help me? > > Regards > Johann >
Having both nginx and uwsgi on webfaction is now useless. This is a quick sequence you can run on debian too: wget http://projects.unbit.it/downloads/uwsgi-1.0.4.tar.gz tar zxvf uwsgi-1.0.4.tar.gz cd uwsgi-1.0.4 make if all goes well run uWSGI ./uwsgi --http-socket :8080 --chdir <path_to_webp2y> --module wsgihandler point your browser to port 8080 on localhost and you should see your app For webfaction substitute :8080 with the assigned port -- Roberto De Ioris http://unbit.it

