Plack::App::CocProxy - proxy requests and replace by local file
use Plack::App::CocProxy; Plack::App::CocProxy->new(root => 'files');
or you can use this like:
$ twiggy -MPlack::App::CocProxy -e 'Plack::App::CocProxy->new(root=>".")->to_app' -p 5432
or you can use installed simple script:
$ cocproxy # is same as above
Plack::App::CocProxy arrogates requests and redirect to local file under rules based on request-URI.
http://example.com/ => ./index.html => ./example.com/index.html => (original url) http://example.com/foo/bar.html => ./bar.html => ./example.com/foo/bar.html => ./example.com/bar.html => ./foo/bar.html => (original url)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.