Set up reverse proxy and loadbalancing without hostname

bai030805 nginx-forum at forum.nginx.org
Sat Jul 9 15:23:41 UTC 2016


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; 
        } 
    } 
}

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



More information about the nginx mailing list