I followed this tutorial more or less... I installed the passenger gem, executed passenger-install-ginx-module, sucessfully installed nginx and inserted this into the config:
I had the same error until I added passenger_root and passenger_ruby directives in the http block.