Unable to configure nginx as reverse proxy
    srk. 
    nginx-forum at nginx.us
       
    Fri Feb 17 14:41:40 UTC 2012
    
    
  
Hi
I am new to nginx and am trying to configure nginx as reverse proxy. Its
broadcasting on the ip but its not forwarding the requests to the
backend servers and nothing found in logs as well.
Please let me know where i m doing the mistake.
My topology  and config----
 2 webservers where apache is running and am configuring nginx as
reversee proxy in one of them(X.X.X.9).
X.X.X.8 is the ip which gets requests from the firewall.
upstream backend {
 server X.X.X.9:80;
 server X.X.X.10:80;
}
map $http_host $name {
    hostnames;
    default 0;
include domainlist;
}
server {
 listen X.X.X.8:80;
 server_name _;
location / {
proxy_pass http://backend/$http_host/;
}
 }
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,222558,222558#msg-222558
    
    
More information about the nginx
mailing list