Re: Set up reverse proxy and loadbalancing without hostname

2016-07-10 Thread bai030805
Hi All thanks so much for your help!!! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,268209,268228#msg-268228 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Set up reverse proxy and loadbalancing without hostname

2016-07-09 Thread Pratyush Kumar
Hi there try this http { upstream myapp1 { server 192.168.16.201; server 192.168.16.202; server 192.168.16.203; server 192.168.16.204; } server { listen 80; location / { proxy_pass http://myapp1/; proxy_set_header Host $host; #proxy_redirect https://myapp1/ http://$host/; } } } Bas

Re: Set up reverse proxy and loadbalancing without hostname

2016-07-09 Thread Francis Daly
On Sat, Jul 09, 2016 at 11:23:41AM -0400, bai030805 wrote: Hi there, > Nginx IP: 192.168.16.206 > Four Web Server: 192.168.16.201-204 Is there one Host: header that you can send in requests to each of the four web servers, so that they will all return the content that you want? If so, use that.

Re: Set up reverse proxy and loadbalancing without hostname

2016-07-09 Thread Dewangga Alam
Hello! On 7/9/2016 10:23 PM, bai030805 wrote: Hi Gurus My lab environment is Nginx IP: 192.168.16.206 Four Web Server: 192.168.16.201-204 My nginx.conf is http { upstream myapp1 { server 192.168.16.201; server 192.168.16.202; server 192.168.16.203; server

Set up reverse proxy and loadbalancing without hostname

2016-07-09 Thread bai030805
Hi Gurus My lab environment is Nginx IP: 192.168.16.206 Four Web Server: 192.168.16.201-204 My nginx.conf is http { upstream myapp1 { server 192.168.16.201; server 192.168.16.202; server 192.168.16.203; server 192.168.16.204; } server {