title: WSO2-ESB 4.8.1 cluster with nginx. Worker node doesn't join
body: <p>I have 3 nodes: nginx as third-party load balancer, 1 manager node, 1 worker node (just to test my setup and configs, you know). I'm doing all like in this tutorial:
  <a href="https://docs.wso2.com/display/CLUSTER420/Clustering+WSO2+Products+without+WSO2+ELB#ClusteringWSO2ProductswithoutWSO2ELB-Configuringthethird-partyloadbalancer" rel="nofollow">https://docs.wso2.com/display/CLUSTER420/Clustering+WSO2+Products+without+WSO2+ELB#ClusteringWSO2ProductswithoutWSO2ELB-Configuringthethird-partyloadbalancer</a> So i'm starting my manager node, everything seems to be ok, i'm entering managment console successfully. And now i'm starting worker node like <code>sh ./bin/wso2server.sh -DworkerNode=true</code> , and i'm expecting to see in Managment Console's system logs or in Manager log something like "member joined". But I don't see. So where can be the problem? Worker starting without any error in logs. Maybe something is wrong about my nginx.conf?</p>
  
  <blockquote>
  <pre><code>upstream wrk.esb {
      server wrk.esb:9763;
  }
  server {
      listen 80;
  server_name wrk.esb;
      location / {
          proxy_pass http://wrk.esb;
      }
  }
  upstream ssl.wrk.esb {
      server wrk.esb:9443;
  }
  server {
       listen 443;
   server_name wrk.esb;
       ssl on;
       ssl_certificate /etc/nginx/ssl/wrk.crt;
       ssl_certificate_key /etc/nginx/ssl/wrk.key; 
       location / {
          proxy_pass https://ssl.wrk.esb;
      }
  }
  server {
      listen 443;
  server_name mgt.esb;
      ssl on;
  #proxy_ssl_session_reuse off;
  #proxy_set_header X-Forwarded-Host $host;
  #proxy_set_header X-Forwarded-For $remote_addr;
      ssl_certificate /etc/nginx/ssl/mgt.crt;
      ssl_certificate_key /etc/nginx/ssl/mgt.key;
      location /carbon {
          proxy_pass https://mgt.esb:9443;
      #proxy_redirect https://10.0.13.4:9443 https://mgt.esb  
      #proxy_ssl_session_reuse off;
          #proxy_set_header X-Forwarded-Host $host;
          #proxy_set_header X-Forwarded-For $remote_addr;
      #proxy_set_header X-Forwarded-Server $host;     
      }
  }
  </code></pre>
    
    <p>}</p>
  </blockquote>
  
  <p>In fact, I can't see any line of code inside <code>wso2server.sh</code> script that can parse my <code>-DworkerNode=true</code> or <code>-Dsetup</code> input variales! So, there is no matter starting with <code>-DworkerNode=true</code> or <code>-Dsetup</code> - it's starting always like a manager...
  I've found also nice article <a href="http://sajithswa.blogspot.ru/2015/01/blog-post.html" rel="nofollow">http://sajithswa.blogspot.ru/2015/01/blog-post.html</a>. And it is confusing, but many things there are different from tutorial that i've mentioned above.</p>