Mojolicious::Plugin::RequestBase - Support setting base in frontend proxy
# Mojolicious $self->plugin('RequestBase'); # Mojolicious::Lite plugin 'RequestBase';
Simple plugin to support Request Base header. Just load it and set X-Request-Base in your Frontend Proxy. For instance, if you are using nginx you could use it like this:
proxy_set_header X-Request-Base 'https://mojolicio.us/myapp';
Mojolicious::Plugin::RequestBase inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register;
Register plugin in Mojolicious application.
Catalyst::TraitFor::Request::ProxyBase, Mojolicious, Mojolicious::Guides, http://mojolicio.us.
Copyright (C) 2011, Marcus Ramberg.
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
To install Mojolicious::Plugin::RequestBase, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::RequestBase
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::RequestBase
For more information on module installation, please visit the detailed CPAN module installation guide.