improve lighttpd configuration samples
[perl/plp/.git] / lib / PLP / Backend / FastCGI.pm
index b3c8c3a3dc84852c9a0b7385f99d9293746429a9..4f14863ee9bcb80b64ba1ae5e17c82b1559c8805 100644 (file)
@@ -33,15 +33,15 @@ PLP::Backend::FastCGI - FastCGI interface for PLP
 
 =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