Wondering if anyone''s heard of a php script that will ''forward'' your requests on to, say, a mongrel instance, and return it? Kind of a php fcgi? Thoughts? Thanks. -Roger -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 1/12/08, Roger Pack <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Wondering if anyone''s heard of a php script that will ''forward'' your > requests on to, say, a mongrel instance, and return it? Kind of a php > fcgi? Thoughts?Apache''s mod_rewrite can get in front of a PHP script request and do pretty much anything with it. Have a look at RewriteCond and RewriteRule. http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html -- Greg Donald http://destiney.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> Apache''s mod_rewrite can get in front of a PHP script request and do > pretty much anything with it. > > Have a look at RewriteCond and RewriteRule.I''m not sure if mod_rewrite can forward requests to a mongrel instance, tho. I don''t think it quite can :) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Roger Pack wrote:>> Apache''s mod_rewrite can get in front of a PHP script request and do >> pretty much anything with it. >> >> Have a look at RewriteCond and RewriteRule. > I''m not sure if mod_rewrite can forward requests to a mongrel instance, > tho. I don''t think it quite can :)I''m trying to figure out an ''easiest'' way to integrate rails and apache, if there are any ideas :) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 12, 2008 10:29 AM, Roger Pack <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Wondering if anyone''s heard of a php script that will ''forward'' your > requests on to, say, a mongrel instance, and return it? Kind of a php > fcgi? Thoughts?Why would you waste your time even thinking about PHP when the Apache httpd already has mod_proxy and mod_proxy_balancer to do exactly what you''re describing? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
mod_proxy and mod_proxy_balancer only have scope at the global and virtual host level, meaning that you can''t use rails apps from a subdirectory using them (or perhaps it is indeed possible, and somebody out there can give me pointers on how?)> Why would you waste your time even thinking about PHP when the > Apache httpd already has mod_proxy and mod_proxy_balancer to do > exactly what you''re describing?-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 14, 2008 11:54 AM, Roger Pack <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > mod_proxy and mod_proxy_balancer only have scope at the global and > virtual host level, meaning that you can''t use rails apps from a > subdirectory using themYou should revisit the docs :-) The first argument to ProxyPass is a path, e.g. ProxyPass /example/ balancer://example_cluster/ HTH, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---