View Single Post
  #5  
Old 07-12-2006, 12:25 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
To mount a Rails application at a URL other than the document root, using /typo/ as an example, you need to define a static context /typo/ pointing to <railapp>/public/ folder, define a LSAPI context with URI /typo/dispatch.lsapi, instead of using it as a 404 handler, you have to add context level rewrite rules, you can just copy those rules in the .htaccess under public folder of that application, replace "dispatch.rb" or "dispatch.fcgi" with "dispatch.lsapi".

Also, you need to change the route configuration for the Rails application to fix the "unknow route" error if any.
Reply With Quote