Hi, I need my Rails app to not create internal URLs that begin with "/", but rather something like "/rails". Does anyone know where this would be configured? Basically, I''m building a setup with Rails behind Apache, and Apache using mod_proxy to route requests to the Rails server instance. So for example, Apache is doing this: https://server/rails ---> http://localhost:3000 Thanks, Robb --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Hmm. This appears to answer my question: http://wiki.rubyonrails.com/rails/pages/HowtoDeployRailsAppUnderDirectory On Jun 13, 1:40 pm, Robb <Robb.Shec...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I need my Rails app to not create internal URLs that begin with "/", > but rather something like "/rails". Does anyone know where this would > be configured? > > Basically, I''m building a setup with Rails behind Apache, and Apache > using mod_proxy to route requests to the Rails server instance. So > for example, Apache is doing this: > > https://server/rails ---> http://localhost:3000 > > Thanks, > Robb--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You can also look a Mongrels prefix setting to get your app running
under a /something url.
Would work great with mod_proxy
RewriteEngine On
RewriteRule ^/my_app1(.*)$ http://localhost:8000%{REQUEST_URI}
[P,QSA,L]
this in you mongrel_config.yml
prefix: /my_app1
port: "8000"
environment: production
address: 127.0.0.1
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---