2 Catalyst::TraitFor::Request::ProxyBase -
7 use namespace::autoclean;
10 use CatalystX::RoleApplicator;
14 __PACKAGE__->apply_request_class_roles(qw/
15 Catalyst::TraitFor::Request::ProxyBase
21 This module is a Moose::Role which allows you more flexibility in your
22 application's deployment configurations when deployed behind a proxy.
24 The problem is that there is no standard way for a proxy to tell a
25 backend server what the original URI for the request was, or if the
26 request was initially SSL. (Yes, I do know about "X-Forwarded-Host", but
29 This creates an issue for someone wanting to deploy the same cluster of
30 application servers behind various URI endpoints.
32 Using this module, the request base ("$c->req->base") is replaced with
33 the contents of the "X-Request-Base" header, which is expected to be a
34 full URI, for example:
38 http://other.example.com:81/foo/bar/yourapp
40 This value will then be used as the base for uris constructed by
52 Probably. Patches welcome, please fork from:
54 http://github.com/bobtfish/catalyst-traitfor-request-proxybase
56 and send a pull request.
59 Tomas Doran (t0m) "<bobtfish@bobtfish.net>"
62 This module is Copyright (c) 2009 Tomas Doran and is licensed under the
63 same terms as perl itself.