Nginx Configurations

vps

#1

I have a dedicated DreamHost Server where I installed a ruby on rails app under /srv directory, I installed nginx with passenger and configured nginx to open my app when I access my domain which is the server name .dreamhost.com. However, it is still showing welcome to nginx page even if I run sudo /etc/init.d/nginx reload or stop or service nginx stop I get no error but nothing changes and I keep getting the welcome page as if the restart or stop didn’t take any effect. Also I tried to remove nginx but nothing changed. This is my /etc/nginx/nginx.conf file:
[user www-data;
worker_processes 4;
pid /var/run/nginx.pid;

events {
worker_connections 768;
# multi_accept on;
}

http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;

include /etc/nginx/mime.types;
default_type application/octet-stream;

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

gzip on;
gzip_disable "msie6";

passenger_root /home/madrasati/.rvm/gems/ruby-1.8.7-head/gems/passenger-5.1.2;
passenger_ruby /home/madrasati/.rvm/gems/ruby-1.8.7-head/wrappers/ruby;
#include /etc/nginx/passenger.conf;

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-available/*;

}]

This is etc/nginx/sites-available/madrasati.conf file
[
server {
listen 80 default_server;
server_name www.madrasatie.com *.madrasatie.com ds10316.dreamservers.com;
passenger_enabled on;
passenger_app_env production;
root /srv/madrasati_app/madrasati/public;
}
]
And this is /home/madrasatie/nginx/madrasatie:
[
server {
listen 80 default_server;
server_name www.madrasatie.com *.madrasatie.com ds10316.dreamservers.com;
passenger_enabled on;
passenger_app_env production;
root /srv/fedena_app/fedena_cds/public;
}

]
I tried so many things and nothing is taking effect. I removed the default conf file also. Please help me solve this. Also restarting,stopping, or uninstalling nginx do not give any effect. [/code]