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:
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
Phusion Passenger users guide index)
.

//jarkko


Jarkko L.

http://www.railsecommerce.com
http://odesign.fi