title: Passenger preloader error with nginx and apache
body: <p>I have a rails 2 application which I want to run on Apache or Nginx, but for both of them I am getting the same error:</p>
  
  <p><img src="https://i.stack.imgur.com/vZ7kA.png" alt="Error facing for both Apache and nginx"></p>
  
  <p>nginx.conf</p>
  
  <pre><code>     passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
       passenger_ruby /usr/bin/ruby;
  
      ##
      # Virtual Host Configs
  
      server {
              listen 80;
              server_name web.test.com;
              root /home/vishal/workspace/website/public;
              passenger_enabled on;
      }
      ##
  
      include /etc/nginx/conf.d/*.conf;
      include /etc/nginx/sites-enabled/*;
  </code></pre>
  
  <p>The app is running fine with passenger standalone, but causing issues with nginx and apache.</p>
  
  <p>I tried to understand the supporting doc but could not find the solution. I want to use nginx for the app.</p>