title: How to deploy ruby on rails application with passenger and nginx?
body: <p>I am deploy a <code>ruby on rails</code> application with <code>passenger</code> and <code>nginx</code>, but it returns <code>NetworkError: 500 Internal Server Error</code>. <code>$WEB_APP/log/</code> doesn't have <code>production.log</code> and <code>/var/log/nginx/error.log</code> doesn't exist.</p>
  
  <p>here is my <code>nginx.cong</code>:</p>
  
  <pre><code>server {
      listen       80;
      server_name  localhost;
  
      location / {
          #root   /home/roger/tmp/html/;
          root    /home/roger/ruby_workspace/blog/public/;
          passenger_enabled on;
      }
  
      error_page   500 502 503 504  /50x.html;
      location = /50x.html {
          root   html;
  }
  </code></pre>
  
  <p>Since I do not get any error log files, so I do not know what's wrong with my config?</p>