Nginx not detecting the root location from config for Rails 3.2 app

emclab nginx-forum at
Thu Mar 27 02:37:41 UTC 2014

Here is the error.log of nginx server running on ubuntu 12.04. 

    2014/03/17 12:47:17 [error] 7939#0: *1 open()
"/opt/nginx/html/mkl/authentify/signin" failed (2: No such file or
directory), client:, server:, request: "GET
/mkl/authentify/signin HTTP/1.1", host: ""

In /opt/nginx/conf/nginx.conf, it is configured as following:

    root /ebs/www/;
    passenger_enabled on;
    rails_env production;
    passenger_base_uri /mkl;

The root of nginx server is pointing to /ebs/www/. However the nginx is
accessing the /opt/nginx and throws out no such file error. What causes the
problem? Thanks.

Posted at Nginx Forum:,248743,248743#msg-248743

More information about the nginx mailing list