}
delete @ENV{
- qw(SCRIPT_NAME SCRIPT_FILENAME),
grep /^REDIRECT_/, keys %ENV
};
sub read ($) {
my ($bytes) = @_;
- read *STDIN, my $data, $bytes;
+ read *STDIN, my ($data), $bytes;
return $data;
}
=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