F<lighttpd.conf> configuration using L<mod_fastcgi|PLP::Backend::FastCGI>:
- server.modules = (
- "mod_fastcgi",
- )
- 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",
+ )))
=head2 Apache installation
=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 Lighttpd
-Edit the configuration file (usually F</etc/lighttpd/lighttpd.conf>)
-to enable I<mod_fastcgi> (add/outcomment in server.modules), and add:
-
- fastcgi.server = (
- ".plp" => ((
- "bin-path" => "/usr/bin/perl -MPLP::Backend::FastCGI",
- "socket" => "/tmp/fcgi-plp.socket",
- )),
- )
+Add this to your configuration file (usually F</etc/lighttpd/lighttpd.conf>):
+
+ 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