[ejabberd] Need help configuring with JWchat

Laura McCord mccordl at southwestern.edu
Tue Apr 15 23:32:40 MSD 2008


Hi Chris,

What am I supposed to get when I try to access : 
http://mychat.example.com:5280/http-poll/? I get an xml parsing error 
stating "no element found".

THanks,
 Laura

Chris Jones wrote:

>I have jwchat working with ejabberd. Here's how mine is set up: In 
>jwchat's directory, I have a .htaccess with the following:
>
>Options +Indexes +Multiviews
>AddDefaultCharset UTF-8
>RewriteEngine on
>RewriteRule http-poll/ http://localhost:5280/http-poll/ [P]
>
>Then in jwchat's config.js I have:
>
>var SITENAME = "cjones.org"
>...
>var BACKENDS =
>[
>                {
>                        name:"Ejabberd",
>                        description:"Ejabberd's native HTTP Polling 
>backend",
>                        httpbase:"http-poll/",
>                        type:"polling",
>                        servers_allowed:['cjones.org']
>                },
>];
>
>I didn't change anything in my ejabberd config to get this working, as 
>far as I can remember. I note that ejabberd.cfg has, in its (listen ...) 
>expression, the following:
>
>  {5280, ejabberd_http, [
>                         http_poll,
>                         web_admin
>                        ]}
>
>Chris
>
>Laura McCord wrote:
>  
>
>>I did try what you suggested and I put the following in the httpd.conf 
>>file but nothing happened. I restarted both ejabberd and apache2 and 
>>when I tried opening http://mychat.example.com:5280/http-bind/ the 
>>browser just kept churning.
>>
>>LoadModule     proxy_module            /usr/lib/apache2/mod_proxy.so
>>LoadModule     proxy_http_module    /usr/lib/apache2/mod_proxy_http.so
>>LoadModule     rewrite_module          /usr/lib/apache2/mod_rewrite.so
>>
>>RewriteEngine   On
>>RewriteRule      /http-bind/   http://mychat.example.com:5280/http-bind/
>>ProxyPass         /http-bind/   http://mychat.example.com:5280/http-bind/
>>
>>under my ejabberd.cfg file I have:
>>
>>{5280, ejabberd_http, [
>>                                     {request_handlers, [
>>                                        {["web"], mod_http_fileserver}]},
>>                                        http_bind,
>>                                        http_poll,
>>                                        web_admin
>>                                     ]}
>>
>>{mod_http_bind, []},
>>{mod_http_fileserver, [
>>                                     {docroot, "/srv/www/htdocs"},
>>                                     {accesslog, 
>>"/var/log/ejabberd/webacess.log"}
>>                                  ]},
>>
>>in config.js under /srv/www/htdocs/jwchat I have this:
>>
>>var SITENAME = "mychat.example.com";
>>
>>var BACKENDS contains the default settings.
>>
>>Thanks for you help.
>>
>>Laura
>>
>>Eric Sessoms wrote:
>>
>>  
>>    
>>
>>>I would try:
>>>
>>>< RewriteEngine On
>>>< RewriteRule /http-bind/ http://mychat.example.com:5280/http-bind/
>>>< ProxyPass /http-bind/ http://mychat.example.com:5280/http-bind/
>>>
>>> 
>>>
>>>    
>>>      
>>>
>>>>RewriteEngine On
>>>>RewriteRule http-bind/ http://mychat.example.com:5280/http-bind/ [P]
>>>>   
>>>>
>>>>      
>>>>        
>>>>
>>>The RewriteRule needs the proxy directive in order to know what to do
>>>with the URL.  If the proxying is invoked via mod_rewrite, the
>>>ProxyPass directive is not needed.  (You do still need to load the
>>>proxy modules.)
>>>
>>>HTH,
>>>
>>>Eric
>>>_______________________________________________
>>>ejabberd mailing list
>>>ejabberd at jabber.ru
>>>http://lists.jabber.ru/mailman/listinfo/ejabberd
>>> 
>>>
>>>    
>>>      
>>>
>>_______________________________________________
>>ejabberd mailing list
>>ejabberd at jabber.ru
>>http://lists.jabber.ru/mailman/listinfo/ejabberd
>>  
>>    
>>
>_______________________________________________
>ejabberd mailing list
>ejabberd at jabber.ru
>http://lists.jabber.ru/mailman/listinfo/ejabberd
>  
>


More information about the ejabberd mailing list