Ticket #9251: ew-mythweb-lighty-20101118a.patch

File ew-mythweb-lighty-20101118a.patch, 2.6 KB (added by E. Westbrook <mythtv-trac@…>, 13 years ago)
Line 
1diff -rt old/branches/release-0-24-fixes/mythplugins/mythweb/INSTALL new/branches/release-0-24-fixes/mythplugins/mythweb/INSTALL
2196,197d195
3< Please do not use Lighttpd unless you know what you are doing.
4<
5363c361,429
6< Sorry, no documentation here yet...
7---
8> Configuring lighttpd for mythweb is not as difficult as it once might
9> have been.  All you need to do is add this to your
10> /etc/lighttpd/lighttpd.conf, or a file included by it (substituting of
11> course for your own local particulars).
12>
13> If you're running mythweb as a virtual host, include the following
14> inside a $HTTP["host"] directive.
15>
16>   # You'll want to specify the document root, naturally
17>
18>   server.document-root = "/var/www/localhost/htdocs/mythweb"
19>
20>   # The following two sections are the "meat" of configuring mythweb
21>   # under lighttpd.  You will need this at the least.
22>
23>   setenv.add-environment = (
24>     "db_server"   => "servername",
25>     "db_name"     => "mythconverg",
26>     "db_login"    => "mythtv",
27>     "db_password" => "password"
28>   )
29>
30>   url.rewrite-once = (
31>     "^/(css|data|images|js|themes|skins|[a-z_]+\.(php|pl)).*" => "$0",
32>     "^/(pl(/.*)?)$" => "/mythweb.pl/$1",
33>     "^/(.+)$"       => "/mythweb.php/$1",
34>     "^/(.*)$"       => "/mythweb.php"
35>   )
36>
37>   # Protip: If you want HTTP Digest Authentication, uncomment and
38>   # configure this section.  Set up the mythweb.htdigest file for your
39>   # users according to the normal lighttpd documentation.
40>
41>   # auth.backend = "htdigest"
42>   # auth.backend.htdigest.userfile = "/etc/lighttpd/mythweb.htdigest"
43>   # auth.require = (
44>   #   "/" => (
45>   #     "method"  => "digest",
46>   #     "realm"   => "MythTV",
47>   #     "require" => "valid-user"
48>   #   )
49>   # )
50>
51>   # Protip: Uncomment and configure this section if you aren't already
52>   # using fastcgi for PHP applications on your lighttpd server.  If
53>   # you're running mythweb as a virtual host, uncommenting this
54>   # section will allow it to run as its own unique and isolated
55>   # fastcgi instance.
56>
57>   # fastcgi.server = (
58>   #   ".php" => ((
59>   #     "bin-path" => "/usr/bin/php-cgi",
60>   #     "socket"   => "/var/run/lighttpd/mythtv-php-fcgi.socket",
61>   #     "broken-scriptfilename" => "enable",
62>   #     "bin-environment" => (
63>   #       "db_server"   => "localhost",
64>   #       "db_name"     => "mythconverg",
65>   #       "db_login"    => "mythtv",
66>   #       "db_password" => "mythtv"
67>   #     )
68>   #   ))
69>   # )
70>
71>   # Protip: You might already have perl CGIs handled in your lighttpd
72>   # config.  If you don't, you'll want this section.
73>
74>   # cgi.assign = (
75>   #   ".pl"  => "/usr/bin/perl"
76>   # )