|
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.
|