View Single Post
  #4  
Old 07-12-2006, 11:37 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
When using Mongrel with LiteSpeed, just think of Mongrel as a http proxy server. So create "proxy" external apps, and create "contexts" to map url to the correct "proxy"/mongrel backend.

There is a litespeed how-to on mongrel's website:

http://mongrel.rubyforge.org/docs/litespeed.html

Two things to note:

1) In the above how-to, initial request timeout is way too low. 1 second is not practical. 15-30 seconds is more like it unless you entire db is ram based.

2) Understand that Mongrel is a http server and much slower http server than litespeed. With this in mind, you do not want Mongrel to handle static images/css/etc. Create a static context in lsws with higher priority (lower number) context in lsws to point to the static files/folders so that LiteSpeed handle all static content while only dynamic rail requests is routed to Mongrel backend.

We will update our wiki for sure.
Reply With Quote