activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nick <szj-...@163.com>
Subject Activemq ajax project( activemq-web-demo) does not support load balance?
Date Thu, 28 Nov 2013 09:45:10 GMT
I had deployed the activemq-web-demo project in tow tomcat.

   atomcat ip and port is 192.168.18.244:8080;
   btomcat ip and port is 192.168.18.244:8081;

   I opend the url http://192.168.18.244:8080/activemq-web-demo/chat.html by
chrome.
     open   the url http://192.168.18.244:8081/activemq-web-demo/chat.html
by ie.

  its all goes well. 

  then i configured in my nginx.conf like this.
   
           *upstream www.jamenke.com{
                  server 192.168.18.244:8081;
           }*
   ...
           location  / {
            root   html;
            index  index.html index.htm;
            proxy_pass   http://www.jamenke.com;
            proxy_redirect    off;
            proxy_set_header   Host $host;
            proxy_set_header   X-Real-IP $remote_addr;
            proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
            client_max_body_size   10m;
        }
   
   I opend the url http://192.168.18.244/activemq-web-demo/chat.html by
chrome and ie.
   It goes well too. 

   at last. I add configured nginx.conf like this:
              *upstream www.jamenke.com{
                  server 192.168.18.244:8081;
                  /server 192.168.18.244:8080;  # add this line/ 
           }*
   and restart nginx.
    I opend the url http://192.168.18.244/activemq-web-demo/chat.html by
chrome and ie.
    I found it cannot recieve messages.
    
<http://activemq.2283324.n4.nabble.com/file/n4674904/20131128173955.png> 

    *can anyone tell me , it does not support load balance? If it support,
how can i do .*

   Thanks, Best Regards
   
   Nick.
   

   

      



  



--
View this message in context: http://activemq.2283324.n4.nabble.com/Activemq-ajax-project-activemq-web-demo-does-not-support-load-balance-tp4674904.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message