Topic: Nginx and Passenger not accessing any controllers...

Hey Guys,

I've installed nginx (1.0.6) with the passenger module (3.0.9) (on Ubuntu 11.04 with rvm and ruby 1.9.2 and rails 3.0.9).  When I attempt to access any of my controllers, I get 403 forbidden error page. When I look in the log, it appears nginx isn't redirecting the request to passenger, but instead looking for a static file in my public folder... for example:

2011/09/12 21:40:31 [error] 17994#0: *3 open()

I've attached the nginx.conf file for review.  If anyone has any suggestions, they would be appreciated.

worker_processes  1;
events {
    worker_connections  1024;
}

http {
    passenger_root /home/sonnychee/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9;
    passenger_ruby /home/sonnychee/.rvm/wrappers/ruby-1.9.2-p290/ruby;

    include       mime.types;
    default_type  application/octet-stream;

    sendfile        on;
    keepalive_timeout  65;

    server {
        listen       80;
        server_name  localhost;

        location / {
            root   /home/sonnychee/workspace/gc3;
        }
        root    /home/sonnychee/workspace/gc3/public;
        passenger_enabled on;


        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }
}

Last edited by sonnychee (2011-09-13 11:44:41)