[Catalyst] Extending Catalyst::Script::Server to proxy
Bill Moseley
moseley at hank.org
Sat Jul 14 06:55:49 GMT 2012
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
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20120713/9c87a=
e9c/attachment.htm
More information about the Catalyst
mailing list