I need a little Plack help.

I have a web app that is running as two apps -- one is Catalyst and the
other, well, isn't.

What I'd like is a script/myapp_proxy.pl script that works just like script/
myapp_server.pl but "mounts" /foo to the Catalyst app and all other
requests get proxied via Plack::App::Proxy.

For example:


$ script/myapp_proxy.pl --port 5000 --proxy_to http://localhost:6000/



Then GET http://localhost:5000/foo/whatever is handled by the Catalyst app,
but anything else (GET http://localhost:5000/other) is reverse-proxied to
localhost:6000.

I was hoping to use the existing framework for running scripts -- mostly so
the script works where ever the Catalyst app is installed.

Can anyone help with this?

Thanks,

-- 
Bill Moseley
[email protected]
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to