Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently got a Linode and followed a guide on how to setup Ruby On Rails with Nginx on Debian 5.

Everything seems to be setup properly (no errors or issues following that guide). I've uploaded the ruby app I was working on locally, updated the nginx.conf file to point to the app and am now getting an error:

no such file to load -- config/environment

Please see this screen cap of the error for full details. I have tried changing permissions on the environment.rb file. I think I'm missing something very basic. For what it's worth, the site does work locally in a mac environment.

Here is a snippet of my nginx log.

Here's the site in my nginx conf file:

server {
  listen          80;
  server_name     *;

  root            html/simple_cms/public;
    passenger_enabled on;
    passenger_use_global_queue on;

I'm a complete newbie both in the linux environment and as a ruby developer. So any advice would be well taken and much appreciated!

share|improve this question

This should be an absolute path:

root /some/path/html/simple_cms/public;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.