Nginx not passing http request to backend server

verofei nginx-forum at nginx.us
Fri Feb 14 16:07:21 UTC 2014


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



More information about the nginx mailing list