Book
- Basic setup of a SOHO server
- SoHo - Software repositories
- SoHo - Alias of loopback interface
- SoHo - IPtables configuration example
- SoHo - Webmin
- SoHo - DNS
- SoHo - VMWare
- SoHo - Windows
- SoHo - OpenVPN
- SoHo - Remote Desktop
- Nameserver on Windows XP forwarding to public DNS with private zones
- SoHO - NTP
- SoHo - SSH
- SoHo - Ubuntu prerequisites
- How to strengthen SSH
- Fixing Nessus complaints
- Java installation on RHEL 4
- Installing vsFTPd on CentOS
- How to setup CA (certificate authority)
- Installation of VIM X11 and archivers on RHEL 4 x86_64
- SoHo - MS & Open-Office
- User management
- CommuniGate Pro
- Backup
- Issue tracking for small groups
- Jabber setup and configuration
- Monitoring & Statistics
- Printing in SOHO
- Faxes in SOHO
- T38 Modem
- PostScript fonts for faxes
- Installing Brother MFU drivers on Ubuntu
- Installing Hylafax client on RHEL4 and Fedora
- Installing Hylafax server on RHEL4
- Installing Hylafax server on Ubuntu
- Integrating Hylafax with CUPS
- Integrating Hylafax with CommuniGate
- Managing Hylafax from Ubuntu client
- Sending and receiving faxes over internet (links)
- How to test faxing
- Drivers for Brother MFUs
- Brand new idea about faxing
- External faxing resources
- Antivirus & Antispam
- External SOHO References
- Supplementary SOHO procedures
Jabber - JWchat
There are two methods of using JWChat with eJabberd: using apache or local server. Both work, but I prefer more secure and robust apache.
JWchat can access eJabberd either via http-poll or http-bind. Note that Firefox 3.0.6+ breaks http polling in JWchat. Thus, we will use http bind method.
Configure eJabberd for http binding in /etc/ejabberd/ejabberd.cfg:
- {listen, [
- ...
- {5280, ejabberd_http, [ http_bind, http_poll, web_admin ]}
- ]}.
Also, explicitly enable http binding and polling modules in /etc/ejabberd/ejabberd.cfg (this step is missing from the official guide):
- {modules, [
- ...
- {mod_http_bind, []}
- ,{mod_http_poll, []}
- ]}.
Note: as of ejabberd 2.1.6 the "mod_http_poll" line make the daemon crash. Do not use it, the poll module will run without this line.
Set up virtual apache host in /etc/httpd/vhosts/jabber.conf
- ServerName jabber.ourdom.com:443
- DocumentRoot /var/www/jabber
- Include vhosts/ssl.inc
- AddDefaultCharset UTF-8
- <Directory /var/www/jabber>
- Options +MultiViews
- </Directory>
- ReqwriteEngine On
- RewriteRule ^/$ /jwchat/ [R,L]
- ProxyRequests Off
- ProxyPass /http-bind/ http://localhost:5280/http-bind/ keepalive=on
- ProxyPass /http-poll/ http://localhost:5280/http-poll/ keepalive=on
- ProxyPass /admin/ http://localhost:5280/admin/ keepalive=on
- ProxyPassReverse /admin/ http://localhost:5280/admin/
- <Location /admin>
- Include vhosts/authorize.inc
- </Location>
Restart Apache.
Download jwchat-1.0.tar.gz (мое зеркало) from JWChat site and extract into /var/www/jabber/jwchat.
Edit /var/www/jabber/jwchat/config.js. Set SITENAME to your domain. Comment out all backends but native binding. Set 'httpbase' to the redirected address from above (/http-bind/).
Also prevent disconnect due to inactivity timeout. Notice the Timeout value in the Apache configuration file /etc/httpd/conf/httpd.conf. In my case it is 120 seconds. It is the connection inactivity time after which Apache proxy closes the connection (on /http-bind/). Adjust JSJACHBC_MAX_WAIT at jsjac.js to a smaller value like 100 or such:
var JSJACHBC_MAX_WAIT = 100; var JSJACHBC_MAXPAUSE = 90;
Point your browser to

Comments
Post new comment