LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > How to use eJabberD with Litespeed?

Reply
 
Thread Tools Display Modes
  #1  
Old 11-22-2010, 12:52 PM
robdiablo robdiablo is offline
New Member
 
Join Date: Nov 2007
Posts: 8
Default 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.

Last edited by robdiablo; 11-22-2010 at 12:55 PM..
Reply With Quote
  #2  
Old 11-22-2010, 05:25 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,295
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]
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:37 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.