Clustericious::RouteBuilder::Proxy - build proxy routes easily
version 1.00
use My::Object::Class; use Clustericious::RouteBuilder; use Clustericious::RouteBuilder::Proxy "proxy" => { to => "http://google.com:80", strip_prefix => "/google", -as => "proxy_google", }, "proxy" => { app => 'MyServer', -as => "proxy_local" }, proxy_service => { # Bulk mapping services => { "froogle" => "http://froogle.com", "fraggle" => "http://fraggle.com" } }; ... get '/google/:somewhere' => \&proxy_google; get '/something/:somewhere' => \&proxy_local; get '/:service/(*whatever)' => \&proxy_service;
This package provides routes for proxying. It rewrites URLs by stripping prefixes, and passes the rest on by prepending a given url to the incoming request.
none
Clustericious
original author: Brian Duggan
current maintainer: Graham Ollis <plicease@cpan.org>
contributors:
Curt Tilmes
This software is copyright (c) 2013 by NASA GSFC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Clustericious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Clustericious
CPAN shell
perl -MCPAN -e shell install Clustericious
For more information on module installation, please visit the detailed CPAN module installation guide.