Again, I figured it out...

The new mongrel supports --prefix.

So, I start up a cluster (or a single server) up like so:

mongrel_rails cluster::configure -e production -p 3050 -N 3 -c /
development/shovell -a 127.0.0.1 --user mongrel --group mongrel  --
prefix /shovell

Then I modify Apache configuration like so:


<VirtualHost *>
  # Virtual Host configuration for Rails (Shovell)
  ServerName nokios.sytes.net

  ProxyRequests Off

  <Proxy *>
    Order deny,allow
    Allow from all
  </Proxy>

  ProxyPass         /shovell   balancer://mongrel_cluster/shovell
  ProxyPass         /shovell/  balancer://mongrel_cluster/shovell
  ProxyPassReverse  /shovell   balancer://mongrel_cluster/shovell
</VirtualHost>

<Proxy balancer://mongrel_cluster>
  BalancerMember http://127.0.0.1:3050
  BalancerMember http://127.0.0.1:3051
  BalancerMember http://127.0.0.1:3052
</Proxy>

I hope this helps whoever else may come across this!



On May 21, 7:40 am, Nokios <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have been searching for the past 2 or 3 days on how to deploy my
> rails apps within subdirectories (ie:http://www.domain.com/myapp or
> even domain.com/rails/myapp) and have found a few tutorials, but all
> have left something out it seems.  I would like to do this rather 
> thanhttp://myapp.domain.com/since it will be usd internally and I have no
> real direct access to dns to make the changes.
>
> Currently, all I have done is setup a mongrel_cluster using three
> servers on one physical linux box, modified the rewritebase within
> the .htaccess file of the public folder and I have made a symlink ::
> /var/www/html/rails/shovell is a symlink to /development/shovell/
> public.
> When I visit it on my computer, I get a 500 error (from my windows
> machine on the same network).  When I visit it from the linux machine,
> I get the site, but without CSS.  And when someone else visits it,
> apparently they get the site...  so I'm not sure what is going on
> here, but nothing seems to work.
>
> The link ishttp://nokios.sytes.net/rails/shovell.  If anyone is
> willing to assist me in configuring this, please feel free to send me
> an email.. I would +greatly+ appreciate it.  I am new to rails... and
> I want to make sure I can do this before I continue.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to