Nginx not passing http request to backend server

Hi,
I have configured Nginx as a reverse-proxy to pass http requests to
backend
servers.
When i try to see the domains thay all show me the default page of
Nginx.
The config file is in /etc/nginx/conf.d
Theese are the entries that i have for one of the domains
server {
listen 80;
server_name test.verofei.local;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_pass http://test.verofei.local/;
}
}

So how can i configure nginx to act as a frontend reverse proxy for our
backend webservers?

Thanx,
Fei

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,247568,247568#msg-247568

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