Welcome! Log In Create A New Profile

Advanced

Re: Set up reverse proxy and loadbalancing without hostname

July 09, 2016 11:30AM
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 192.168.16.204;
> }
> server {
> listen 80;
> location / {
> proxy_pass http://myapp1;
> }
> }
> }

Have you tried using `proxy_redirect off;` under your proxy_pass
configuration?

>
> from web brower, i use http://192.168.16.206 to access the web server. the
> web brower redirect "http://192.168.16.206" to "https://myapp1/"
> then i got error "myapp1’s server DNS address could not be found." error.
>
> Could you please give me some suggestions about this? thanks so much for
> your feedback.
>
> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,268209,268209#msg-268209
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Set up reverse proxy and loadbalancing without hostname

bai030805 July 09, 2016 11:23AM

Re: Set up reverse proxy and loadbalancing without hostname

dewanggaba July 09, 2016 11:30AM

Re: Set up reverse proxy and loadbalancing without hostname

Francis Daly July 09, 2016 12:28PM

Re: Set up reverse proxy and loadbalancing without hostname

Pratyush Kumar July 09, 2016 01:54PM

Re: Set up reverse proxy and loadbalancing without hostname

bai030805 July 10, 2016 10:41AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 313
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready