Hi Stuart, On Monday 13 November 2006 19:02, Dark Ambient wrote: > I just ran into one glitch , found out we're running Apache 2.0.54, so no > mod_proxy_balance. Any workarounds for that ?
Since we're using RHEL 4 (and cannot install things from source, for various reasons), I recently setup Apache 2.0.x to use a mongrel cluster just by using mod_proxy to randomise requests between the various mongrels. It's not as good as real load balancing (and, we haven't really tested it properly yet - comments very welcome!), but it certainly seems like the best option so far if you're not able to install Pen/Pound/Apache 2.2... For example, start three mongrels on 8000-8002, then something like this in your vhost should sort you out, but definitely read the manual: ProxyRequests Off ProxyPreserveHost On RewriteMap servers rnd:///path/to/rewrite_map.conf RewriteRule ^/(images|stylesheets|javascripts)/?(.*) $0 [L] RewriteRule ^/(.*)$ http://localhost:${servers:ports}/$1 [P,L] rewrite_map.conf: ports 8000|8001|8002 Mark > > Stuart > > On 11/13/06, Dark Ambient <[EMAIL PROTECTED]> wrote: > > I have a site that is PHP on Apache / RedHat , but will send requests to > > a subdomain (running Rails) for database operations. > > I believe the set up should be to have ROR using Mongrel, and an Apache > > virtual host passing requests from apache to mongrel. > > Does this sound correct ? > > I believe the Virtual Host is set up in Apache. > > One of my problems is I can't find the httpd.conf file for apache. > > Sounds strange. > > Currently Rails is in a folder under /var/www/html/railsapp > > > > However I see that the Rails app is configured to this path > > /home/virtual/site8/fst/var/www/html/railsapp. > > > > Any one know what I should be looking for on the Apache side ? > > > > TIA > > Stuart > > > > > > -- > > http://en.wikipedia.org/wiki/Dark_ambient _______________________________________________ Mongrel-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/mongrel-users
