mike nicholaides
2006-Jun-15 19:27 UTC
[Rails] Running a rails app from a directory instead of a sub domain.
Hey guys, I''d like to be able to run a rails app from a directory instead of a sub-domain (in Apache). I haven''t been able to find any resources on the web describing how to do this. I was wondering if anybody has any experiences doing this, or can at least point me towards some resources that could tell me how this is done. Thanks, Mike -- http://ablegray.com
Brian Hogan
2006-Jun-15 20:14 UTC
[Rails] Running a rails app from a directory instead of a sub domain.
See my articles here: http://www.napcs.com/howto/rails/deploy/ They are centered on Windows deployment. However, the articles Serving Multiple Rails Applications on Windows with Apache and Mongrel and Integrate Rails into an Existing IIS Web infrastructure using Apache and FastCGI both have configurations for Apache that will do exactly what you are looking to do. On 6/15/06, mike nicholaides <mike.nicholaides@gmail.com> wrote:> > Hey guys, > I''d like to be able to run a rails app from a directory instead of a > sub-domain (in Apache). I haven''t been able to find any resources on > the web describing how to do this. > > I was wondering if anybody has any experiences doing this, or can at > least point me towards some resources that could tell me how this is > done. > > Thanks, > Mike > > -- > http://ablegray.com > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060615/e07d95da/attachment.html
Asa Hopkins
2006-Jun-16 05:15 UTC
[Rails] Re: Running a rails app from a directory instead of a sub do
If you''re running Lighttpd, you can use something like this: http://blog.lighttpd.net/articles/2005/11/23/lighttpd-1-4-8-and-multiple-rails-apps You might find, however, as I did, that I want to skip the "strip-request-uri" line in the config file, and instead include something like this in routes.rb: ActionController::AbstractRequest.relative_url_root = "/app_name" Good luck, Asa -- Posted via http://www.ruby-forum.com/.