0 {{postValue.vote_count}}

CentOS Nginx load balancer two different apps

Hi,

I am trying to configure my web and mail server and i got following setup:

  • Server A 192.168.1.211
  • Server B 192.168.1.212
    But since i got only one public IP i wanted to create load balancer using nginx.

I saw configuration toturial on this site, that i need to add:
upstream backend {
server 192.168.1.211;
server 192.168.1.212;
}
and then proxy_pass: http://backend inside location, but i cant get server B to work on Http or https.

Anyone can help please ?

{{forumCtrl.question_commentErr}}

Your Answer
{{forumCtrl.responseErr}}