ok,your config is a little confused.
in your @ruby - part you should proxy_pass to your unicorn - server
proxy_pass http://unicorn_server;
(thats why you put your definition there :)
-------------------------------------------------------
> OK, so I've gone through the documentation on the Nginx wiki, and I
> still only have a minimal grasp on how to configure the it to serve
> Spree via Unicorn. Things are now back where they started (with a 502
> error), but I am making some progress, however, in that the server now
>
> points to the custom error pages I made, rather than the default ones.
>
> Oh well...
>
> Attached is the current version of my nginx.conf file.
> Attachments:
> http://www.ruby-forum.com/attachment/8205/nginx.conf
>
>
> --
> Posted via http://www.ruby-forum.com/.
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx