ejabberd - Comments for "HTTP Polling Is Broken (I think?)" https://www.ejabberd.im/node/1409 en Apache22; ejabberd https://www.ejabberd.im/node/1409#comment-51407 <p>my apache uses '/usr/local/www/data' instead of '/var/www/data'; changes made; still dunno where this 'http-poll' list is/should be.</p> <p>README:<br /> "%&lt;----------</p> <p> RewriteEngine On<br /> RewriteRule http-poll/ <noindex><a href="http://127.0.0.1:5280/http-poll/" title="http://127.0.0.1:5280/http-poll/" rel="nofollow" >http://127.0.0.1:5280/http-poll/</a></noindex> [P]</p> <p> %&lt;----------</p> <p> Note 1: You need to enable mod_rewrite and mod_proxy at your apache<br /> configuration. Apache2 users also need to enable the protocol<br /> specific proxy module mod_proxy_http."</p> <p>Me:<br /> Found "LoadModule rewrite_module libexec/apache22/mod_rewrite.so" but not the others.<br /> Assuming I'm to add the others (guessing at convention):<br /> "LoadModule proxy_module libexec/apache22/mod_proxy.so" and "LoadModule<br /> proxy_http_module libexec/apache22/mod_proxy_http.so"<br /> Wrote; stopped httpd; restarted</p> <p>Apache:<br /> "httpd: Syntax error on line 104 of /usr/local/etc/apache2/httpd.xonf: Cannot load<br /> /usr/local/libexec/apache2/mod_proxy.so into server: cannot open<br /> "/usr/local/libexec/apache22/mod_proxy.so"</p> <p>Me:<br /> Found a 'mod_proxy.c' and a 'mod_proxy.h' (some type of compiling needed?!?)<br /> could not find a 'mod_proxy_http.so' either. #'d them both. jabber.server.name:5280/http-poll/ still not<br /> equal output to jabber.server.name/http-poll/ or jabber.server.name (obviously I'd prefer the later<br /> without some silly http-poll after it.</p> Tue, 04 Dec 2007 05:41:44 +0000 Rich Phoenix comment 51407 at https://www.ejabberd.im config.js https://www.ejabberd.im/node/1409#comment-51276 <p>In addition to following the instructions in the JWChat readme, make sure your "type" is set to be "polling" instead of "binding" if you intend for JWChat to poll against the port. That was the final step that got me over the top.</p> Tue, 20 Nov 2007 21:08:05 +0000 dlnatha comment 51276 at https://www.ejabberd.im Jwchat readme https://www.ejabberd.im/node/1409#comment-3448 <p>I built from source on FreeBSD and there is a README file in my jwchat dir.<br /> The notes in config.js are also helpful.<br /> Here is the Quick Install Guide section of the readme:<br /> Quick Install Guide<br /> ===================</p> <p>* Unpack jwchat into some directory that is accessible by your web<br /> server. E.g.: /var/www/jwchat</p> <p>* Setup your web server so that it redirects some local address like<br /> <noindex><a href="http://jabber.example.com/http-poll/" title="http://jabber.example.com/http-poll/" rel="nofollow" >http://jabber.example.com/http-poll/</a></noindex> to some service that either<br /> implements HTTP Polling or HTTP Binding.</p> <p> Some servers like ejabberd do have such a service built-in. Please<br /> refer to the docs of your jabber server to find out how to use it.</p> <p> If your server does not have such a service built-in or you don't<br /> plan to run your own jabber server at all there are standalone<br /> components like punjab or JabberHTTPBind available that let you<br /> connect to any jabber server using HTTP Binding or HTTP Polling.</p> <p> Here is an example that should work with a default ejabberd<br /> installation on the same host:</p> <p>%&lt;----------</p> <p> ServerName jabber.example.com<br /> DocumentRoot /var/www/jwchat</p> <p> Options +Indexes +Multiviews</p> <p> AddDefaultCharset UTF-8<br /> RewriteEngine on<br /> RewriteRule http-poll/ <noindex><a href="http://127.0.0.1:5280/http-poll/" title="http://127.0.0.1:5280/http-poll/" rel="nofollow" >http://127.0.0.1:5280/http-poll/</a></noindex> [P]</p> <p>%&lt;----------</p> <p> Alternatively you could put a .htaccess file within jwchat's<br /> subdirectory like this (you need to have 'AllowOverride All' in your<br /> apache config in order to make this work):</p> <p>%&lt;----------</p> <p>RewriteEngine On<br /> RewriteRule http-poll/ <noindex><a href="http://127.0.0.1:5280/http-poll/" title="http://127.0.0.1:5280/http-poll/" rel="nofollow" >http://127.0.0.1:5280/http-poll/</a></noindex> [P]</p> <p>%&lt;----------</p> <p> Note 1: You need to enable mod_rewrite and mod_proxy at your apache<br /> configuration. Apache2 users also need to enable the protocol<br /> specific proxy module mod_proxy_http.</p> <p> Note 2: With JabberHTTPBind you don't need to do this sort of<br /> address rewriting if you're serving JWChat's files from within your<br /> servlet container directly or you're using some technique like<br /> mod_jk to mount a remote servlet engine directory transparently into<br /> your apache's domain of served addresses.</p> <p>* Restart your web server.</p> <p>* Test if this redirect works. Following the example above point your<br /> browser to <noindex><a href="http://jabber.example.com/http-poll/" title="http://jabber.example.com/http-poll/" rel="nofollow" >http://jabber.example.com/http-poll/</a></noindex>. You should see the<br /> same response as if you you're pointing it to<br /> <noindex><a href="http://jabber.example.com:5280/http-poll/" title="http://jabber.example.com:5280/http-poll/" rel="nofollow" >http://jabber.example.com:5280/http-poll/</a></noindex>.</p> <p>* Edit 'config.js' to suit your needs.<br /> Be sure to set 'httpbase' to the redirected address from<br /> above. Within our example it would have to be<br /> 'http://jabber.example.com/http-poll/' or 'http-poll/' in short.</p> Thu, 29 Mar 2007 21:04:44 +0000 dotdash comment 3448 at https://www.ejabberd.im there is no readme file in https://www.ejabberd.im/node/1409#comment-3444 <p>there is no readme file in my JWChat directory... can you please be more specific?...</p> Wed, 28 Mar 2007 11:26:51 +0000 cerber23 comment 3444 at https://www.ejabberd.im Figured it out for anybody who may encounter the same thing https://www.ejabberd.im/node/1409#comment-3359 <p>All - </p> <p>It came down to the configuration of my SuSe box and the way that I configured both JWChat and ejabberd. Bottom line, read the readme file in your jwchat directory - that's what unlocked the mystery for me.</p> <p>Tim</p> Thu, 15 Mar 2007 16:19:28 +0000 tradle comment 3359 at https://www.ejabberd.im