On Thu, Oct 9, 2008 at 2:45 PM, fRAnKEnSTEin <[EMAIL PROTECTED]> wrote:

> If you have some free time, can you test the virtualhost configuration
> over your dedicated server? to see if you get the same problem that i
> do or if you not. Maybe the real problem is something about the
> virtualhost...i dont know just guessing.....:(

OK, I created 2 VirtualHost entries, this one (minus the standard
stuff -- ServerName, logging, etc.):

<VirtualHost *:80>

    DocumentRoot "/path/to/rails_app/public"

    LoadModule passenger_module
/usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems/passenger-2.0.3/ext/apache2/mod_passenger.so
    PassengerRoot /usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems/passenger-2.0.3
    PassengerRuby /usr/local/ruby-1.8.6/bin/ruby

</VirtualHost>

::  plus a static VirtualHost with a different DocumentRoot.

Both vhosts worked as expected -- the first forwards to my Rails app,
the second to the static instance.

> Well in my server i can not do this thing because i have lots of rails
> apps there, so i need to access all of them via apache, so i want to
> do a simple "http"//www.mydomain.com/railsapp1" or "http"//
> www.mydomain.com/railsapp2" and so on..

Well, er, mmm. That looks like a different problem. I'm not sure that
mod_rails is intended to address that use case. Not that that means
much, since I'm new to it as well, but...  :-)

At the very least, your scenario looks like it would require mod_proxy
and/or mod_rewrite. The simplest configuration that strikes me -- not
tested yet! -- would be to set up your virtual hosts as e.g.

  railsapp1.example.com
  railsapp2.example.com

and then use mod_proxy to forward requests for  example.com/railsapp1/
appropriately (and transparently).

HTH!
-- 
Hassan Schroeder ------------------------ [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to