nginx not acknowledging passenger_root option

Posted by lowgain on Server Fault See other posts from Server Fault or by lowgain
Published on 2010-05-22T21:52:33Z Indexed on 2010/05/22 22:01 UTC
Read the original article Hit count: 309

Filed under:
|

I'm running a sinatra app on passenger, and trying to hook it to nginx. The relevant part of my config looks like:

http {
    passenger_root /path/to/gem; #this is a valid path
    passenger_ruby /path/to/ruby; #ditto

    #etc...

    server {
        listen 80;
        server_name hello.org;
        root /path/to/stuff/public;
        passenger_enabled on;
    }
}

Whenever I start nginx however, I get:

Starting nginx: [alert]: Phusion Passenger is disabled becasue the 'passenger_root' option is not set. Please set this option if you want to enable Phusion Passenger.

What am I missing here? Thanks!

© Server Fault or respective owner

Related posts about nginx

Related posts about phusion-passenger