On Fri, 2006-07-07 at 14:29 -0500, John I. wrote:
answer to my problem…
Address to bind to when listening for connections.
* Default: 0.0.0.0 (every interface)
thanks for the documentation/site zed.
Another approach is to set the X-Fowarded-For header in the web server
in front. Weird thing is Apache is supposed to do this already when it
proxies a connection. Mongrel will pick-up this header and set
REMOTE_HOST to it so that rails gets the routing and rewrites correct.
Run your app with one mongrel and the -B option turned on for a couple
requests. Then go look at the log/mongrel_debug/rails.log file and see
what headers it’s giving to your rails app. If REMOTE_HOST says
localhost then something’s not right with your apache config. If you
don’t see X_FORWARDED_FOR as well then research via google how to set it
with mod_header and force it to the vhost.
Zed A. Shaw
http://www.railsmachine.com/ – Need Mongrel support?