Welcome! Log In Create A New Profile

Advanced

Reverse proxy setup problem

June 29, 2015 10:34PM
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;
}
}
Subject Author Posted

Reverse proxy setup problem

Nousfeed June 29, 2015 10:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready