Apache+Mongrel Redirection Problems

Hi folks,

Newbie issues…I’m prototying an Apache/Mongrel configuration setup
as follows:

  • Two Mongrel servers each serving a Rails application.
  • Apache front-end.
  • Linux system (CentOS)
  • The plan is to create two virtual hosts.

/ETC/HOSTS LOOKS LIKE THIS:

Do not remove the following line, or various programs

that require network functionality will fail.

127.0.0.1 localhost.localdomain localhost egovm04
10.4.1.84 rss
10.4.1.84 railstest

HTTPD.CONF LOOKS LIKE THIS:

[snip]

NameVirtualHost 10.4.1.84

ServerName rss ServerAlias rss
RewriteEngine on
RewriteRule ^/rss(.*) http://10.4.1.84:5432$1 [P]

ProxyPass / http://10.4.1.84:5432/
ProxyPassReverse / http://10.4.1.84:5432/
ServerName railstest
ServerAlias railstest

RewriteEngine on
RewriteRule ^/railstest(.*) http://10.4.1.84:8021$1 [P]

ProxyPass / http://10.4.1.84:8021/
ProxyPassReverse / http://10.4.1.84:8021/

ISSUES

  1. App 1 (rss) URL rewrite problem.

Typing ‘http://10.4.1.84/rss’ in the browser correctly accesses app #1
(rss), HOWEVER…

This: ‘http://10.4.1.84/rss/about’ finds the right page, but the URL
is rewritten to this: ‘http://10.4.1.84/about

  1. App # 2 not found.

Typing this: ‘http://10.4.1.84/railstest’ yields this:

Routing Error
Recognition failed for “/railstest”

This is a Rails message reported by app # 1( rss). So the (Apache)
server is not redirecting to the second Virtual Host (railstest).

Sorry for the question, I’m quite sure this is a setup problem on my
part.

Thanks,
Stan