nginx picks default index.html

Sid Div lists at ruby-forum.com
Fri Jul 17 19:57:26 MSD 2009


Hi,

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
directory
and not my application.

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

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

---snip---


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

$ ls
nginx  public  railsapp


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

How to make nginx to point to myappl in /var/www/myapp/current/public
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list