Welcome Guest | Login

multiple rails app setup, rewrite rules needed?

Dear all,

i've set up some add-on domains pointing to some rails apps, and they all work fine.

So far I've followed the article
(Deploying multiple Rails apps under one account , http://www.hostingrails.com/forums/wiki_thread/6) to set all these up, except that I didn't set up these lines in my primary domain's .htaccess file:
RewriteCond %{REQUEST_URI} ^/app2folder.*
RewriteRule .* - [L]

so, my question is, do i really need these lines? I actually don't really understand what it does.

Pls advice.
Thanks.


2008-04-18 05:02 AM

The lines mentioned above is the notrails section. Those rewrite rules are useful when you've certain directories which have PHP or other applications and don't expect rails to look into it.
Apache won't rewrite these requests when the rewrite rules are uncommented.

2008-04-18 06:12 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.