NAME

Slovo::Plugin::CGI - before_dispatch hook under Apache 2/CGI

DESCRIPTION

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.

HOOKS

before_dispatch

Handles Apache double encoding of the UTf-8 url and strips the $ENV{SCRIPT_NAME} from produced by Slovo urls.

CONFIGURATION

The folowing option is currently supported.

mod_rewrite = 1

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}

AUTHOR

Красимир Беров
CPAN ID: BEROV
berov на cpan точка org
http://i-can.eu

COPYRIGHT

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.