Reverse proxy setup problem

I have created a reverse proxy for 2 web servers both are running about
10
sites each, they use to be on seperate external IP’s but now need to be
behind the same one.

Using Nginx I setup a reverse proxy on a seperate VM, Its seems to work
but
one site is refusing to go to the correct server.

I have nothing in /conf.d/ I am using /sites-available and
/sites-enabled,
each site has its own config file. Im using proxy_pass with the servers
IP
address. What am I doing wrong?

server {
listen 10.0.0.125:80;
server_name .example.com;
location / {
proxy_pass http://10.0.0.110/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_max_temp_file_size 0;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}
}

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

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