I use this code to open a unix socket in production at tmp/socket : https://gist.github.com/lgbr/5453355
And use a configuration like this for nginx (replace /etc/nginx/sites-available/default with this): https://gist.github.com/lgbr/5453375
I use this code to open a unix socket in production at tmp/socket : https://gist.github.com/lgbr/5453355
And use a configuration like this for nginx (replace /etc/nginx/sites-available/default with this): https://gist.github.com/lgbr/5453375