packages: mythplugins/mythweb_lighttpd.conf (NEW) - mythweb configuration ...

w.kier w.kier at pld-linux.org
Fri May 14 13:58:16 CEST 2010


Author: w.kier                       Date: Fri May 14 11:58:15 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
-  mythweb configuration for lighttpd

---- Files affected:
packages/mythplugins:
   mythweb_lighttpd.conf (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/mythplugins/mythweb_lighttpd.conf
diff -u /dev/null packages/mythplugins/mythweb_lighttpd.conf:1.1
--- /dev/null	Fri May 14 13:58:16 2010
+++ packages/mythplugins/mythweb_lighttpd.conf	Fri May 14 13:58:10 2010
@@ -0,0 +1,51 @@
+# This is a user supplied example file. Please modify before use
+
+# Apply mythweb configuration if hostname equals to mythweb
+$HTTP["host"] == "mythweb" {
+    evhost.path-pattern = "/usr/share/mythweb"
+    # Requiring authentication is a good idea if the server is publicly
+    # accessible.  On a private server this section can be safely removed.
+    auth.backend = "htdigest"
+    auth.backend.htdigest.userfile = "/usr/share/mythweb/htdigest"
+    auth.require = (
+        "/" => (
+            "method"  => "digest",
+            "realm"   => "mythweb",
+            "require" => "valid-user"
+        )
+    )
+
+    # Use fastcgi for the PHP parts
+    fastcgi.server = (
+        ".php" => ((
+            "bin-path" => "/usr/bin/php.fcgi",
+            "socket"   => "/var/run/lighttpd/mythtv-php-fcgi.socket",
+            "broken-scriptfilename" => "enable",
+            "bin-environment" => (
+                "db_server"   => "localhost",
+                "db_name"     => "mythconverg",
+                "db_login"    => "mythtv",
+                "db_password" => "mythtv"
+            )
+        ))
+    )
+
+    # Environment variables for the Perl parts
+    setenv.add-environment = (
+        "db_server"   => "localhost",
+        "db_name"     => "mythconverg",
+        "db_login"    => "mythtv",
+        "db_password" => "mythtv"
+    )
+
+    cgi.assign = (
+        ".pl"  => "/usr/bin/perl"
+    )
+
+    url.rewrite-once = (
+        "^/(classes|data|includes|js|modules|skins|[a-z_]+\.(php|pl)).*" => "$0",
+        "^/(pl(/.*)?)$" => "/mythweb.pl/$1",
+        "^/(.+)$"       => "/mythweb.php/$1",
+        "^/(.*)$"       => "/mythweb.php"
+    )
+}
================================================================


More information about the pld-cvs-commit mailing list