GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PLACK::MIDDLEWARE::PROXY::REWRITELOCATION (3)

.ds Aq ’

NAME

Plack::Middleware::Proxy::RewriteLocation - Rewrites redirect headers

CONTENTS

SYNOPSIS



  use Plack::Builder;
  use Plack::App::Proxy;

  builder {
      enable "Proxy::RewriteLocation";
      Plack::App::Proxy->new(remote => "http://10.0.1.2:8080/")->to_app;
  };

  ### or, if mounting (i.e. URLMap) the proxied site at /foo

  builder {
      enable "Proxy::RewriteLocation", url_map => [ /foo => http://10.0.1.2:8080 ];
      mount /foo => Plack::App::Proxy->new(remote => "http://10.0.1.2:8080/")->to_app;
  };



DESCRIPTION

Plack::Middleware::Proxy::RewriteLocation rewrites the Location header in the response when the remote host redirects using its own headers, like mod_proxy’s ProxyPassReverse option.

OPTIONS

url_map (arrayref) If given, will account for mounted (URLMapped) Proxy apps when rewriting Location headers. Will be applied in order, stopping at the first successful match with the remote Location.

AUTHOR

Tatsuhiko Miyagawa Robert Buels

SEE ALSO

Plack::App::Proxy
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PLACK::MIDDLEWARE::PROXY::REWRITELOCATION (3) 2012-10-10

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.