[Catalyst] Re: [Catalyst-dev] Proxy patches

Jonathan Rockway jon at jrock.us
Mon Jun 18 00:17:37 GMT 2007


On Sunday 17 June 2007 02:17:32 pm Dave Rolsky wrote:
> The last round had one bug in it, in that it broke tests in
> t/live_component_controller_args.t that expected the path to include a
> doubled slash. I'm not sure this is a sane test (a doubled slash probably
> should not be relevant), but I don't want to get too sidetracked.
>
> Also, per jrockway's IRC request, I've separated the patches by distro.

Thanks.  All of these were applied as r6477.  Yay for "svk push --lump" :)

To those wanting to test, the patches are in branches ending 
with "proxystuff", like branches/Catalyst-Runtime-proxystuff.  I've 
personally tested the new code with perlbal + dev server, and it's working 
wonderfully with this perlbal config:

  CREATE POOL myapp
    POOL myapp ADD 127.0.0.1:3010
    POOL myapp ADD 127.0.0.1:3011
    POOL myapp ADD 127.0.0.1:3012
    POOL myapp ADD 127.0.0.1:3013
  
  CREATE SERVICE balancer
    SET listen          = 0.0.0.0:1234
    SET role            = reverse_proxy
    SET pool            = myapp
    SET persist_client  = on
    SET persist_backend = on
  ENABLE balancer
  HEADER balancer insert X-Forwarded-Host: foo.jrock.us
  HEADER balancer insert X-Forwarded-Port: 1234

And of course, it works fine without a proxy in front too :)

Thanks, Dave!

Regards,
Jonathan Rockway
-- 
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;



More information about the Catalyst mailing list