[Rails] Re: Ruby site structure on Apache

mark sheran
2006-02-24T19:54:50Z

How to use symlink.I do not understand.Thanks

Mark
Pat Maddox wrote:
> You need to make the document root RAILS_ROOT/public, not RAILS_ROOT.
> There''s absolutely no reason your rails code needs to be available
> over HTTP, and in fact is a security risk.  Consider that anyone can
> go to config/database.yml and see your connection info.
>
> If you can''t explicitly set the docroot to RAILS_ROOT/public, then
you
> should put your app in a non HTTP-accessible folder and use a symlink.
>
> Pat