Nginx picks default index.html

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs