improve lighttpd configuration samples
[perl/plp/.git] / lib / PLP / Backend / CGI.pm
index 0005762dd5fe5d66cfedbfb0cc702cc4cfcc7b2b..1e8def9abb09a5a394ceafdac5f99da29fb9fa7d 100644 (file)
@@ -93,12 +93,12 @@ Or install the C<plp.cgi> included with PLP.
 
 =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