Hello everyone!
We’ve recently moved from Windows Server 2003 to Ubuntu 10.04 and I am having some serious trouble getting openfire to work correctly. Our application is run on Strophe and Apache. The issue I am having is that when users connect to the openfire instance, openfire sees the connection and the says the user is logging in fine but users are completely unable to send messages to one another.
A little more detail. I have strophe connecting back to apache at “/xmpp-httpbind/” and apache proxies the request to “http://127.0.0.1/http-bind/”. Again, openfire sees the user just fine and says that the user is logged in and ready to recieve messages. The problem is that when a message is sent to the openfire server, destined for a particular user, openfire never seems able to get the packet to the user. After looking in the debug logs, openfire reports that it is “unable to find server for user”.
I am baffled by this as I have been working on the issue for around a week now and have come up quite short. All was working well on the Windows Server so I do not think there is an error in the client code. I feel like the issue may be coming from my proxy configuration in ubuntu as Ubuntu handles its apache configuration a little differently than windows did and I had to write it a bit differently. Here is the configuration I currently have:
#turning ProxyRequests on and allowing proxying from all may allow
#spammers to use your proxy to send email.
ProxyRequests Off
<Proxy *>
AddDefaultCharset off
Order deny,allow
#Deny from all
Allow from all
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
ProxyPreserveHost On
Enable/disable the handling of HTTP/1.1 “Via:” headers.
(“Full” adds the server version; “Block” removes all outgoing Via: headers)
Set to one of: Off | On | Full | Block
ProxyPass /xmpp-httpbind/ [http://127.0.0.1:7070/http-bind/](http://127.0.0.1:7070/http-bind/)
ProxyPassReverse /xmpp-httpbind/ [http://127.0.0.1:7070/http-bind/](http://127.0.0.1:7070/http-bind/)
** **
** #turning ProxyRequests on and allowing proxying from all may allow**
** #spammers to use your proxy to send email.**
**
**
** ProxyRequests Off**
**
**
__ <Proxy *>__
** AddDefaultCharset off**
** Order deny,allow**
** #Deny from all**
** Allow from all**
** SetEnv force-proxy-request-1.0 1**
** SetEnv proxy-nokeepalive 1**
** **
**
**
** ProxyPreserveHost On**
**
**
** # Enable/disable the handling of HTTP/1.1 “Via:” headers.**
** # (“Full” adds the server version; “Block” removes all outgoing Via: headers)**
** # Set to one of: Off | On | Full | Block**
**
**
** ProxyPass /xmpp-httpbind/ http://127.0.0.1:7070/http-bind/**
** ProxyPassReverse /xmpp-httpbind/ http://127.0.0.1:7070/http-bind/**
I’m not quite sure whats going on with it but I did notice that every users IP was coming up as “127.0.0.1”. I assumed this was because it was being sent through the proxy and the request was actually coming from the local host. I cannot remember if thats the way it was on the windows instance.
Any help or suggestions would be GREATLY appreciated!