git.shiar.nl
/
perl
/
plp
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve plpinfo page
[perl/plp/.git]
/
lib
/
PLP
/
Backend
/
CGI.pm
diff --git
a/lib/PLP/Backend/CGI.pm
b/lib/PLP/Backend/CGI.pm
index e4bcf1edd3d5d0e019df5133faeb68dadfd79ebc..1e8def9abb09a5a394ceafdac5f99da29fb9fa7d 100644
(file)
--- a/
lib/PLP/Backend/CGI.pm
+++ b/
lib/PLP/Backend/CGI.pm
@@
-48,7
+48,6
@@
sub init {
}
delete @ENV{
}
delete @ENV{
- qw(SCRIPT_NAME SCRIPT_FILENAME),
grep /^REDIRECT_/, keys %ENV
};
grep /^REDIRECT_/, keys %ENV
};
@@
-61,7
+60,7
@@
sub init {
sub read ($) {
my ($bytes) = @_;
sub read ($) {
my ($bytes) = @_;
- read *STDIN, my
$data
, $bytes;
+ read *STDIN, my
($data)
, $bytes;
return $data;
}
return $data;
}
@@
-94,12
+93,12
@@
Or install the C<plp.cgi> included with PLP.
=head2 Lighttpd
=head2 Lighttpd
-Usually in F</etc/lighttpd/lighttpd.conf>:
-enable I<mod_cgi> (add/outcomment in server.modules), and add:
+Add this to your configuration file (usually F</etc/lighttpd/lighttpd.conf>):
- cgi.assign = (
- ".plp" => "/foo/bar/plp.cgi",
- )
+ server.modules += ("mod_cgi")
+ cgi.assign += (".plp" => "/foo/bar/plp.cgi")
+ server.indexfiles += ("index.plp")
+ static-file.exclude-extensions += (".plp")
=head2 Apache
=head2 Apache