httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Richardson" <>
Subject [users@httpd] Needing help with mod_proxy
Date Tue, 01 Jan 2008 02:24:08 GMT
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". --> main app --> other app

I tried doing this via a <Location> 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

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

<VirtualHost *:80>
ServerName ...
DocumentRoot ...

<Directory same/as/doc/root/>
Options ....
AllowOverride ...
Order allow,deny
Allow from All
Deny from None

ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from All

RewriteEngine On
RewriteRule ^/$ /index.html [QSA]
RewriteRule .*{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  I've tried the following:

<Location /other_app>
Order allow,deny
Allow from All


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

View raw message