I have installed nginx + passenger on my VPS with Centos 5.4. I have
installed my application and my nginx config is as follows.

http {
    passenger_root /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.8;
    passenger_ruby /usr/local/bin/ruby;

    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    server {
  listen       80;
        server_name 115.112.187.132;
        root /root/projectfedena-projectfedena_v2.0-a213125/public;
        passenger_enabled on;

        location / {
            root   html;
            index  index.html index.htm;
        }

  error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
}

But when I access the ip address (haven't assigned an URL as yet) I only
see the apache2 test page instead of the application landing page. My
log file shows the following entries

[Wed Aug 24 12:27:52 2011] [error] [client 122.164.136.38] Directory
index forbidden by Options directive: /var/www/html/
[Wed Aug 24 13:03:28 2011] [error] [client 122.164.136.38] Directory
index forbidden by Options directive: /var/www/html/
[Wed Aug 24 14:40:30 2011] [error] [client 122.164.136.38] Directory
index forbidden by Options directive: /var/www/html/

I am not sure why Nginx is still accessing /var/www/html when I have
mentioned the root directory.

Wonder what could be wrong. Any help would be appreciated

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to