title: passenger config.ru permission denied
body: <p>Did anyone go through ERR_EMPTY_RESPONSE under the combination of rails + nginx + passenger?</p>
  
  <p>nginx error.log says:</p>
  
  <pre><code>terminate called after throwing an instance of 'Passenger::FileSystemException' 
  what(): Cannot stat '/home/ec2-user/my-app/config.ru': Permission denied (errno=13)
  </code></pre>
  
  <p>so, I tried loosening permissions for config.ru and its containing directory by using </p>
  
  <pre><code>chmod 777 config.ru 
  chmod 777 my-app
  </code></pre>
  
  <p>but it results in the same error message.</p>
  
  <p>I will appreciate any help. </p>