]> git.pld-linux.org Git - packages/mythplugins.git/blame - mythweb_lighttpd.conf
- fix htdigest path
[packages/mythplugins.git] / mythweb_lighttpd.conf
CommitLineData
7815f9cc 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"
b2af0f27 9 auth.backend.htdigest.userfile = "/etc/webapps/mythweb/htdigest"
7815f9cc 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.069419 seconds and 4 git commands to generate.