Lesha Pipiev
Lesha Pipiev

Reputation: 3333

Nginx Passenger Not Visible Application Issue

I have: Ubuntu 12.04 LTS
ruby-1.9.3-p194
Rails 3.2.7

I am trying to get access to my Rails application through Nginx + Passenger.

/opt/nginx/conf/nginx.conf file is:

user  test;
worker_processes  1;

events {
    worker_connections  1024;
}

http {
    passenger_root /home/test/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.14;
    passenger_ruby /home/test/.rvm/wrappers/ruby-1.9.3-p194/ruby;

    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;

    server {
        listen       80;
        server_name  10.11.11.178;

        root /efiling/public;
        passenger_enabled on;

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

When I enter a link 10.11.11.178 I get Welcome to nginx!
But I am expecting to get Rails app default page.

What is wrong? Thanks in advance.


@Jashwant. First, I removed line as was mentioned by @Brandon. Second, I removed index.html file from my_app\public folder.

Upvotes: 3

Views: 584

Answers (1)

Brandon Jernigan
Brandon Jernigan

Reputation: 461

Try removing the following from the config:

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

Upvotes: 6

Related Questions