Needing help with mod_proxy

Needing help with mod_proxy

am 01.01.2008 23:47:39 von Bryan Richardson

Hello all,

I'm currently using mod_proxy to forward non-static pages to my
WEBrick server for my Rails application. I'm wanting to setup a
second Rails application on my website, running on a different port
number, and I want to access it via a "directory".

www.mysite.com --> main app
www.mysite.com/other_app --> other app

I tried doing this via a directive in my site's conf file,
but that didn't seem to work. Can someone give me some hints as to
how to do this?

Here's what I currently have for my main app:


ServerName ...
DocumentRoot ...


Options ....
AllowOverride ...
Order allow,deny
Allow from All
Deny from None


ProxyRequests Off


Order deny,allow
Allow from All


RewriteEngine On
RewriteRule ^/$ /index.html [QSA]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteRule .* http://127.0.0.1:3001%{REQUEST_URI} [L,P,QSA]


Having this works perfectly for my main Rails application, letting
Apache serve static pages and letting WEBrick serve the scripts. So
what do I need to do to add another Rails app and proxy requests to
the new app when someone goes to say www.mysite.com/other_app? I've
tried the following:


Order allow,deny
Allow from All

ProxyPass http://127.0.0.1:3002
ProxyPassReverse http://127.0.0.1:3002


This, however, did not work. Thanks in advance!!! -- BTR

Re: Needing help with mod_proxy

am 02.01.2008 08:59:19 von unknown

Post removed (X-No-Archive: yes)