LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Apache Migration/Compatibility (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=24)
-   -   How to use eJabberD with Litespeed? (http://www.litespeedtech.com/support/forum/showthread.php?t=4472)

robdiablo 11-22-2010 12:52 PM

How to use eJabberD with Litespeed?
 
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?

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/

When I try to add just the mod rewrite rule into an htaccess file, I get this from Litespeeed:

Code:

[REWRITE] Proxy target is not defined on external application list, please add a 'web server' with name 'www.mxxm.com:5280'
Thanks.

NiteWave 11-22-2010 05:25 PM

please refer this post:
http://www.litespeedtech.com/support...ad.php?p=19683

Quote:

RewriteRule http-poll/ http://jabber.mycompany.com:5280/http-poll/ [P]
is not working. need define a external app "web server" first. for example "jabber_5280_ext_app", then
Quote:

RewriteRule http-poll/(.*) http://jabber_5280_ext_app/http-poll/$1 [P]


All times are GMT -7. The time now is 03:07 AM.