]> git.pld-linux.org Git - packages/mythplugins.git/blob - mythweb_lighttpd.conf
00f9e18b3f9f4fb669da9b3a672bc498be03e885
[packages/mythplugins.git] / mythweb_lighttpd.conf
1 # This is a user supplied example file. Please modify before use
2
3 # Apply mythweb configuration if hostname equals to mythweb
4 $HTTP["host"] == "mythweb" {
5     evhost.path-pattern = "/usr/share/mythweb"
6     # Requiring authentication is a good idea if the server is publicly
7     # accessible.  On a private server this section can be safely removed.
8     auth.backend = "htdigest"
9     auth.backend.htdigest.userfile = "/usr/share/mythweb/htdigest"
10     auth.require = (
11         "/" => (
12             "method"  => "digest",
13             "realm"   => "mythweb",
14             "require" => "valid-user"
15         )
16     )
17
18     # Use fastcgi for the PHP parts
19     fastcgi.server = (
20         ".php" => ((
21             "bin-path" => "/usr/bin/php.fcgi",
22             "socket"   => "/var/run/lighttpd/mythtv-php-fcgi.socket",
23             "broken-scriptfilename" => "enable",
24             "bin-environment" => (
25                 "db_server"   => "localhost",
26                 "db_name"     => "mythconverg",
27                 "db_login"    => "mythtv",
28                 "db_password" => "mythtv"
29             )
30         ))
31     )
32
33     # Environment variables for the Perl parts
34     setenv.add-environment = (
35         "db_server"   => "localhost",
36         "db_name"     => "mythconverg",
37         "db_login"    => "mythtv",
38         "db_password" => "mythtv"
39     )
40
41     cgi.assign = (
42         ".pl"  => "/usr/bin/perl"
43     )
44
45     url.rewrite-once = (
46         "^/(classes|data|includes|js|modules|skins|[a-z_]+\.(php|pl)).*" => "$0",
47         "^/(pl(/.*)?)$" => "/mythweb.pl/$1",
48         "^/(.+)$"       => "/mythweb.php/$1",
49         "^/(.*)$"       => "/mythweb.php"
50     )
51 }
This page took 0.029179 seconds and 2 git commands to generate.