Php and rails on same domain

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.

thanks
michael

On 26.8.2008, at 20.07, Joao S. wrote:

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:

With Passenger I think it works automatically using RailsBaseURI (see
http://www.modrails.com/documentation/Users%20guide.html)
.

//jarkko


Jarkko L.
http://jlaine.net
http://dotherightthing.com
http://www.railsecommerce.com
http://odesign.fi

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs