0 {{postValue.vote_count}}

CentOS Nginx load balancer two different apps


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

  • Server A
  • Server B
    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 {
and then proxy_pass: http://backend inside location, but i cant get server B to work on Http or https.

Anyone can help please ?


Your Answer