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.
Example(root=>"."):
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)
cho45 <cho45@lowreal.net>
Plack::App::Proxy, Plack::App::File, Plack
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Plack::App::CocProxy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::App::CocProxy
CPAN shell
perl -MCPAN -e shell install Plack::App::CocProxy
For more information on module installation, please visit the detailed CPAN module installation guide.