nginx picks default index.html

Sid Div lists at
Fri Jul 17 19:57:26 MSD 2009


I am new to ruby and nginx.
This links has some instructions which I followed.
Turns out that ngnix always picks up the index.html from /opt/nginx
and not my application.

This is the server block in my /opt/nginx/nginx.conf

server {
        listen       80;
        root /var/www/myapp/current/public;
        passenger_enabled on;
        index index.html index.htm;
        client_max_body_size 50M;


In my /var/www/myapp/current directory I have the following:

$ ls
nginx  public  railsapp

when i type in the browser, I see "Welcome to nginx"

How to make nginx to point to myappl in /var/www/myapp/current/public
Posted via

More information about the nginx mailing list