moseley at hank
Jul 13, 2012, 11:55 PM
Post #1 of 1
I need a little Plack help.
Extending Catalyst::Script::Server to proxy
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.
$ 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
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?
moseley [at] hank