We are implementing eJabberD on our server and need to have litespeed redirect a directory to the eJabberD server.
Here are the instructions for Apache, how can I do something similar in Litespeed?
When I try to add just the mod rewrite rule into an htaccess file, I get this from Litespeeed:
Thanks.
Here are the instructions for Apache, how can I do something similar in Litespeed?
Code:
Setup webserver
Now you have to setup your web server so that it redirects requests from the URL given at HTTPBASE of config.js to an HTTP-Polling capable Jabber server component. Those instructions are for Apache 2.
*
.htaccess
The easiest way to make redirection is creating a .htaccess file in the JWChat directory with this content:
AddDefaultCharset UTF-8
Options +MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule http-poll/ http://jabber.mycompany.com:5280/http-poll/ [P]
</IfModule>
In your Apache configuration file (/etc/apache2/apache2.conf) you must enable .htaccess files and proxy options:
<Directory "/var/www/jwchat">
AllowOverride All
</Directory>
Finally, enable rewrite and proxy modules for Apache:
cd /etc/apache2
ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled/
ln -s /etc/apache2/mods-available/proxy.conf /etc/apache2/mods-enabled/
Code:
[REWRITE] Proxy target is not defined on external application list, please add a 'web server' with name 'www.mxxm.com:5280'
Last edited: