package PLP::Backend::FastCGI;
use strict;
+use warnings;
use PLP::Backend::CGI ();
use FCGI;
=head2 Lighttpd
-Edit the configuration file (usually F</etc/lighttpd/lighttpd.conf>)
-to enable I<mod_fastcgi> (add/outcomment in server.modules), and add:
+Add this to your configuration file (usually F</etc/lighttpd/lighttpd.conf>):
- fastcgi.server = (
- ".plp" => ((
- "bin-path" => "/usr/bin/perl -MPLP::Backend::FastCGI",
- "socket" => "/tmp/fcgi-plp.socket",
- )),
- )
+ server.modules += ("mod_fastcgi")
+ fastcgi.server += (".plp" => ((
+ "bin-path" => "/usr/bin/perl -MPLP::Backend::FastCGI",
+ "socket" => "/tmp/fcgi-plp.socket",
+ )))
+ server.indexfiles += ("index.plp")
+ static-file.exclude-extensions += (".plp")
=head2 Apache