It depends on what level of control you have over your setup.
The simple answer is to change the document root of apache (or
whatever server you''re using) to point to the root of your rails app.
Alternatively as long as you have mod_rewrite configuration allowed
you could use it to rewrite everything to /site in the root
public_html directory.
Ross
On 9/17/06, Matt
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> How can I set up my rails application to be served from the root of my
> server. Currently I have to enter http://www.mysite.com/site to load
> the application. It would like it to load from http://www.mysite.com/.
>
> My rails application is in a directory named "myapp" and the
server
> serves files from "public_html"
>
> Thanks in advance.
>
> Matt
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--
Ross Riley
riley.ross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---