Virtual Hosts problem

I’m having a bit of trouble with Apache’s virtual hosts.

My httpd.conf file contains:

<VirtualHost *:80>
ServerName xyz.cfcl.com
ServerAdmin [email protected]
ErrorLog /dev/null
CustomLog /dev/null common
ProxyRequests Off
ProxyPass / http://fido.cfcl.com:3002
ProxyPassReverse / http://fido.cfcl.com:3002

This lets requests get to a copy of RoR 1.2 (Locomotive) on fido.
Mostly, this works fine. For example, http://localhost:3002 and
http://xyz.cfcl.com/ both bring up a welcome page.

However, although http://localhost:3002/stylesheets/base.css
brings up a CSS file, http://xyz.cfcl.com/stylesheets/base.css
brings up the nastygram:

Bad Request
Your browser sent a request that this server could not understand.
Apache/1.3.33 Server at tchm.cfcl.com Port 80

In fact, ANY file in the public directory (e.g., {404,500}.html) acts
this way. Any idea on whether this is an Apache or Rails problem and
(more critically) what to do about it?

-r

http://www.cfcl.com/rdm Rich M.
http://www.cfcl.com/rdm/resume [email protected]
http://www.cfcl.com/rdm/weblog +1 650-873-7841

Technical editing and writing, programming, and web development

Rich M. wrote:

<VirtualHost *:80>
ServerName xyz.cfcl.com
ServerAdmin [email protected]
ErrorLog /dev/null
CustomLog /dev/null common
ProxyRequests Off
ProxyPass / http://fido.cfcl.com:3002
ProxyPassReverse / http://fido.cfcl.com:3002

Can you add the following to your VirtualHost Section too
ProxyPass /* http://fido.cfcl.com:3002/
ProxyPassReverse /* http://fido.cfcl.com:3002/

In any case, this is purely an Apache thing.

Cheers
Raja