Forum: Ruby on Rails Setting up apache as a proxy without subdomain

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2c39e92d3b9c68c7377c4cdb80469f93?d=identicon&s=25 Bart Braem (Guest)
on 2006-03-03 17:28
(Received via mailing list)
I want to run an Apache webserver that acts as a local proxy for
multiple
rails instances in the same domain. The domain seems to be a problem:
which
directives can I use for  www.somehost.com/one and www.somehost.com/two
if
they are two different rails setups?
I came up with this but that does not work:
<VirtualHost somedomain.com:80>
    ServerAdmin                 webmaster@username.tld
        ServerName              somedomain.com:80
        ProxyRequests           Off
        ProxyPreserveHost       On
        RewriteEngine           On
        RewriteRule             ^/one/(.*) http://127.0.0.1:3000/$1
[P,L]
        ProxyPassReverse        / http://127.0.0.1:3000/
</VirtualHost>

The wiki does not mention this case either.

Bart
This topic is locked and can not be replied to.