]> git.pld-linux.org Git - packages/mythplugins.git/commitdiff
- mythweb configuration for lighttpd
authorw.kier <w.kier@pld-linux.org>
Fri, 14 May 2010 11:58:10 +0000 (11:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mythweb_lighttpd.conf -> 1.1

mythweb_lighttpd.conf [new file with mode: 0644]

diff --git a/mythweb_lighttpd.conf b/mythweb_lighttpd.conf
new file mode 100644 (file)
index 0000000..00f9e18
--- /dev/null
@@ -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"
+    )
+}
This page took 0.189771 seconds and 4 git commands to generate.