On 26.8.2008, at 20.07, Joao Silva wrote:
> > hi. > I have a php website running on an apache webserver. > I wrote an extension for this application in rails. > For deployment I want to use passenger(mod_rails). > At the moment the php application runs on a virtual host on port 80 > and > the rails app on port 3000. > In production both apps should be available under the same domain > name. > > For example > http://www.domain.com/* --> php > http://www.domain.com/bar --> rails > http://www.domain.com/foo --> rails > > Can anyone give me hint how I can solve the problem. You can use ProxyPass and ProxyPassReverse for that: http://www.benlog.org/2007/2/17/deploy-your-rails-app-in-a-subdirectory-with-apache-and-mongrel With Passenger I think it works automatically using RailsBaseURI (see http://www.modrails.com/documentation/Users%20guide.html) . //jarkko -- Jarkko Laine http://jlaine.net http://dotherightthing.com http://www.railsecommerce.com http://odesign.fi --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~----------~----~----~----~------~----~------~--~---