Added Apache CGI/FCGI/mod_perl examples
This commit is contained in:
parent
e9893b25f4
commit
784e0bd73c
5 changed files with 39 additions and 2 deletions
5
etc/dev.localhost.localdomain.cgi
Executable file
5
etc/dev.localhost.localdomain.cgi
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/perl
|
||||
use Plack::Server::CGI;
|
||||
|
||||
my $app = Plack::Util::load_psgi("/data/WebGUI/etc/dev.localhost.localdomain.psgi");
|
||||
Plack::Server::CGI->new->run($app);
|
||||
5
etc/dev.localhost.localdomain.fcgi
Executable file
5
etc/dev.localhost.localdomain.fcgi
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/perl
|
||||
use Plack::Server::FCGI;
|
||||
|
||||
my $app = Plack::Util::load_psgi("/data/WebGUI/etc/dev.localhost.localdomain.psgi");
|
||||
Plack::Server::FCGI->new->run($app);
|
||||
|
|
@ -6,7 +6,8 @@ BEGIN {
|
|||
our $WEBGUI_CONFIG = 'dev.localhost.localdomain';
|
||||
our $DOCUMENT_ROOT = '/data/domains/dev.localhost.localdomain/public';
|
||||
}
|
||||
use local::lib $WEBGUI_ROOT;
|
||||
use lib "$WEBGUI_ROOT/lib";
|
||||
#use local::lib $WEBGUI_ROOT;
|
||||
use WebGUI;
|
||||
use Plack::Builder;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue