Dark Ambient
2006-Nov-13 18:16 UTC
[Mongrel] Setting up Mongrel and Apache , some direction needed
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20061113/568f3986/attachment.html
Steven Hansen
2006-Nov-13 18:32 UTC
[Mongrel] Setting up Mongrel and Apache , some direction needed
Sorry but it''s not clear what you need help with. Do you just need to find the httpd.conf file? if you''re on *nix machine, use the find command: find . -name httpd.conf Regards, Steven Dark Ambient 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 > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users
Dark Ambient
2006-Nov-13 19:02 UTC
[Mongrel] Setting up Mongrel and Apache , some direction needed
I just ran into one glitch , found out we''re running Apache 2.0.54, so no mod_proxy_balance. Any workarounds for that ? Stuart On 11/13/06, Dark Ambient <sambient at gmail.com> 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-- http://en.wikipedia.org/wiki/Dark_ambient -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20061113/ad993431/attachment.html
David Vrensk
2006-Nov-13 19:17 UTC
[Mongrel] Setting up Mongrel and Apache , some direction needed
On 11/13/06, Dark Ambient <sambient at gmail.com> wrote:> > One of my problems is I can''t find the httpd.conf file for apache. Sounds > strange.I assume then that the init.d or rc.d script that starts apache on boot does not specifiy a config file, but that apache uses the path that is compiled in. The only way I know to find that is to use strings(1). When I run strings /usr/sbin/httpd | grep ''^/'' I get -------- ... /home/buildcentos/rpmbuild/BUILD/httpd-2.0.52/server/config.c /dev/null /etc/httpd /home/buildcentos/rpmbuild/BUILD/httpd-2.0.52/server/vhost.c ... -------- The line "/etc/httpd" is the only line that even looks like a candidate, and it''s correct for me. HTH, /David -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20061113/dac9a968/attachment.html
Dark Ambient
2006-Nov-13 19:55 UTC
[Mongrel] Setting up Mongrel and Apache , some direction needed
On 11/13/06, David Vrensk <david at vrensk.com> wrote:> > On 11/13/06, Dark Ambient <sambient at gmail.com> wrote: > > > > One of my problems is I can''t find the httpd.conf file for apache. > > Sounds strange. > > > I assume then that the init.d or rc.d script that starts apache on boot > does not specifiy a config file, but that apache uses the path that is > compiled in. The only way I know to find that is to use strings(1). When I > run > > strings /usr/sbin/httpd | grep ''^/'' > > I get > -------- > ... > /home/buildcentos/rpmbuild/BUILD/httpd-2.0.52/server/config.c > /dev/null > /etc/httpd > /home/buildcentos/rpmbuild/BUILD/httpd-2.0.52/server/vhost.c > ... > -------- > > The line "/etc/httpd" is the only line that even looks like a candidate, > and it''s correct for me. > > HTH, > > /David >Right, I found it , each virtual site has it''s own conf file. Stuart -- http://en.wikipedia.org/wiki/Dark_ambient -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20061113/f47a22c7/attachment.html
Dark Ambient
2006-Nov-13 20:13 UTC
[Mongrel] Setting up Mongrel and Apache , some direction needed
On 11/13/06, Steven Hansen <runner at berkeley.edu> wrote:> > > Sorry but it''s not clear what you need help with. Do you just need to > find the httpd.conf file? > > if you''re on *nix machine, use the find command: find . -name httpd.conf > > > Regards, > StevenSorry, yes I did find the httpd.conf file and the include statement as to where the site''s virtualhost file is. However the problem I''m facing now is Apache is at version 2.0.54. My understanding is that without mod_proxy_balancer I''ll be at a loss of concurrent requests. Wanting to know if there is any workaround without upgrading Apache ? Stuart -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20061113/4af4f90b/attachment.html
Steven Hansen
2006-Nov-13 22:36 UTC
[Mongrel] Setting up Mongrel and Apache , some direction needed
Sorry Stuart, I''m using 2.2.3 and don''t know of any workaround for 2.0.x -Steven 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 ? > > Stuart > > On 11/13/06, *Dark Ambient * <sambient at gmail.com > <mailto:sambient at gmail.com>> 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 > > > > > -- > http://en.wikipedia.org/wiki/Dark_ambient > ------------------------------------------------------------------------ > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users
Mark Somerville
2006-Nov-14 10:41 UTC
[Mongrel] Setting up Mongrel and Apache , some direction needed
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 <sambient at gmail.com> 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
Chris Martin
2006-Nov-18 15:03 UTC
[Mongrel] Setting up Mongrel and Apache , some direction needed
how''s this working for you? have you tried pounding it yet? you might try the rails_analyzer_tools gem to see how evenly that distributes requests. the show numb3rs has taught me that random is not always as even as we believe. ;) -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/
Mark Somerville
2006-Dec-01 16:46 UTC
[Mongrel] Setting up Mongrel and Apache , some direction needed
On Saturday 18 November 2006 15:03, Chris Martin wrote:> how''s this working for you?We haven''t had the need to really hammer it yet. We expect to be doing that later on this month, if that''s any use to you.> you might try the rails_analyzer_tools gem to see how evenly that > distributes requests.I hadn''t heard of that - thanks a lot! Take it easy, Mark