Connection 7070 unresolved

I’ve been spending a lot of time on trying to get an openfire connection with port 7070 without much success.

I have installed Openfire 3.6.4 on my CentOS 5.x server.

My server runs WHM and cPanel which I believe is the source of my confusion.

I can access the openfire admin and see it running.

I have installed Sparkweb 0.9.0 and I am able to connect with that. It’s my understanding that this is done via port 5222. This does confirm that openfire is up and running. I again confirmed by connecting with a separate XMPP client.

I have installed strophe ( but I cannot connect using this javascript library.

My version of apache comes configured with the proxy module.

I tried modifying one of my conf files for my domain name. I can’t be certain I modified the right one. WHM divides up the virtual hosts into individual files and I thought that editing each one manually would work I am adding:

ProxyRequests Off
ProxyPass /http-bind http://localhost:7070/http-bind/
ProxyPassReverse /http-bind http://localhost:7070/http-bind/

When I attempt to visit the page never resolves.

I figured I must be doing something wrong in the setup, so I installed Openfire on my Windows machine with Xampp.

The difference with this configuration is that I I have to uncomment the proxy module .so files in the httpd.conf and just insert the above Proxy lines anywhere in that same conf.

Immediately everything was working locally.

I am hoping someone has some insight towards getting this running on my WHM server.

I came across this post, and a few others while trying to get strophe.js running against Openfire 3.6.4 on CentOS 5.5 with Apache.

I previously had the Jappix web client up and running against the OF server, so I knew HTTP binding was working.

For strophe, I modified httpd.conf to enable forward and reverse proxying:

<VirtualHost *:80>

    ProxyPass /http-bind [http://your-of-domain:7070/http-bind/](http://your-of-domain:7070/http-bind/)

    ProxyPassReverse /http-bind [http://your-of-domain:7070/http-bind/](http://your-of-domain:7070/http-bind/)

Restart Apache:

/etc/init.d/httpd restart

Next, I modified /var/www/html/your-strophe-dir/examples/echobot.js:

var BOSH_SERVICE = 'http://your-apache-server/http-bind’;

The echobot example should work now:


See also:

Since posting, I’ve moved away from proxying in favor of URL rewriting. Instead of the above VirtualHost configuration, I now have the folllwing section in my httpd.conf which handles both the strophe.js and Jappix traffic.

RewriteEngine On

    RewriteRule     webchat/bind    []( [P]

    RewriteRule     strophe/http-bind        []( [P]

RewriteEngine On

    RewriteRule     webchat/bind    [http://your-of-domain:7070/http-bind/](http://your-of-domain:7070/http-bind/) [P]

    RewriteRule     strophe/http-bind        [http://your-of-domain:7070/http-bind/](http://your-of-domain:7070/http-bind/) [P]

The ‘webchat’ and ‘strophe’ portions of the above path refer to directories I have under under /var/www/html that contain the Jappix and strophe.js code.