[Locomotive-users] Virtual Hosts problem

Rich Morin rdm at cfcl.com
Sun Jan 21 02:31:26 GMT 2007


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

My httpd.conf file contains:

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

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 Morin
http://www.cfcl.com/rdm/resume     rdm at cfcl.com
http://www.cfcl.com/rdm/weblog     +1 650-873-7841

Technical editing and writing, programming, and web development


More information about the Locomotive-users mailing list