Plack::App::WWW - Serve cgi-bin and static files from root directory
use Plack::App::WWW; use Plack::Builder; my $app = Plack::App::WWW->new(root => "/path/to/www")->to_app; builder { mount "/" => $app; }; # Or from the command line plackup -MPlack::App::WWW -e 'Plack::App::WWW->new(root => "/path/to/www")->to_app'
Plack::App::WWW allows you to load CGI scripts and static files. This module use Plack::App::CGIBin as a base, Plack::App::WrapCGI to load CGI scripts and Plack::App::File to load static files.
Document root directory. Defaults to . (current directory)
.
Plack, Plack::App::CGIBin, Plack::App::WrapCGI, Plack::App::File.
Lucas Tiago de Moraes lucastiagodemoraes@gmail.com
lucastiagodemoraes@gmail.com
This software is copyright (c) 2021 by Lucas Tiago de Moraes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Plack::App::WWW, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::App::WWW
CPAN shell
perl -MCPAN -e shell install Plack::App::WWW
For more information on module installation, please visit the detailed CPAN module installation guide.