I have the same configuration on my laptop and server. On my laptop it works, but not on the server.
Differences: Laptop: nginx version 1.4.3-2 Server: nginx version 1.2.1-2.2+wheezy2 The socket configuration is the same in both uwsgi <socket>/var/run/uwsgi/app/web2py.socket</socket> and in nginx: uwsgi_pass unix:///var/run/uwsgi/app/web2py.socket; In both instances www-data is the owner of the socket and it indeed appears in the correct place. But on the server I get this strange url (uwsgi://unix:///...) in the nginx error.log: 2013/11/27 13:18:02 [error] 32378#0: *3 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: crest2, request: "GET /init/isi/l1_countrynames_standardise_rp HTTP/1.1", upstream: "uwsgi://unix:///var/run/uwsgi/app/web2py.socket:", host: "localhost:1081", referrer: " http://localhost:1081/init/isi/update_alt_country_code_rp?c_id=61977921" If the localhost:1081 looks strange to you, I am testing this through a ssh-tunnel. What could be causing this because uwsgi://unix:/// is certainly wrong. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3)

