Mongrel can be started with a prefix e.g.

  mongrel_rails start -p 3000 --prefix /foobar

So that all of the app's URLs are prefixed, e.g.

  http://localhost:3000/foobar
  http://localhost:3000/foobar/posts
  http://localhost:3000/foobar/posts/1

The problem is that if you hit just the root ( http://localhost:3000/
) then mongrel responds with "NOT FOUND".

I tried adding an index.html to RAILS_ROOT/public that redirects to /
foobar, but this results in an infinite loop.

Does anyone know how to get requests to the root to redirect to the
prefix?

--~--~---------~--~----~------------~-------~--~----~
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