Can't connect to Openfire using Strophe

Hi

I’ve installed Openfire 3.6.4 on Ubuntu. There’s a frontend NGinx with the following configuration -

server {
listen 8080;
server_name localhost;

l location /tomcat {
proxy_pass http://localhost:8081/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}

location /metajack {
proxy_pass http://bosh.metajack.im:5280/xmpp-httpbind/;
}
location /http-bind {
proxy_pass http://localhost:7070/http-bind/;
}

The following Javascript code connects to Openfire -

//Connect handler

login_connect: **function(e){ **

conn.connect(user,pass,

dojo.publish(

}

connection=null;

dojo.publish(

}

});

}

When I point jabberurl to metajack url, it logs in perfectly.

When I try to connect to my local openfire server, it returns to status CONNFAIL,DISCONNECTING and then DISCONNECTED.

What I might be doing wrong here?

Thanks

‘disconnected’);

else if(status===Strophe.Status.DISCONNECTED){

‘connected’,[ user]);

**if(status===Strophe.Status.CONNECTED){ **

this.message=status;

function(status){

var pass=this.login_password.value

var user=this.login_username.value;

var conn=new Strophe.Connection(this.jabberurl);

I checked the Openfire server is up and running using Spark IM client.

Also the javascript I used is connecting to metajack.im perfectly.

So I guess there’s some problem with http-binding but I can’t figure out what.

Please help.

Found the problem finally.

After setting up everything perfectly, I did the stupid mistake of logging in by just using the username.

I was simply entering devin in the web interface, where it should’ve been devin@devinder-laptop