Slovo::Plugin::CGI - before_dispatch hook under Apache 2/CGI
Slovo::Plugin::CGI extends Mojolicious::Plugin. It provides a "before_dispatch" hook to handle Apache double encoding of the current url and to strip the $ENV{SCRIPT_NAME} from produced by Slovo urls. This plugin is enabled by default and will detect if the app is run under CGI. If app is run as a daemon this plugin will do nothing.
$ENV{SCRIPT_NAME}
Handles Apache double encoding of the UTf-8 url and strips the $ENV{SCRIPT_NAME} from produced by Slovo urls.
The folowing option is currently supported.
Boolean. Defaluts to true. Set to 0 to disable removing of $ENV{SCRIPT_NAME} from $c->req->url->base. This will practically stop removing $ENV{SCRIPT_NAME} from all generated links. Having $ENV{SCRIPT_NAME} in URLs also tells mod rewrite to not look for static files in folder domove to not apply any rules when requesting$ENV{SCRIPT_NAME}
$c->req->url->base
Красимир Беров CPAN ID: BEROV berov на cpan точка org http://i-can.eu
This program is free software licensed under the Artistic License 2.0.
The full text of the license can be found in the LICENSE file included with this module.
To install Slovo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Slovo
CPAN shell
perl -MCPAN -e shell install Slovo
For more information on module installation, please visit the detailed CPAN module installation guide.