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

File ew-mythweb-lighty-20101118b.patch, 2.8 KB (added by E. Westbrook <mythtv-trac@…>, 16 years ago)
  • mythplugins/mythweb/INSTALL

     
    193193    mythweb.conf.apache         (See section 5.0)
    194194    mythweb.conf.lighttpd       (See section 6.0)
    195195
    196 Please do not use Lighttpd unless you know what you are doing.
    197 
    198196==========
    1991975.0 Apache
    200198==========
     
    3603586.0 Lighttpd
    361359============
    362360
    363 Sorry, no documentation here yet...
     361Configuring lighttpd for mythweb is not as difficult as it once might
     362have been.  All you need to do is add this to your
     363/etc/lighttpd/lighttpd.conf, or a file included by it (substituting of
     364course for your own local particulars).
    364365
     366If you're running mythweb as a virtual host, include the following
     367inside a $HTTP["host"] directive.
     368
     369  # You'll want to specify the document root, naturally
     370
     371  server.document-root = "/var/www/localhost/htdocs/mythweb"
     372
     373  # The following two sections are the "meat" of configuring mythweb
     374  # under lighttpd.  You will need this at the least.
     375
     376  setenv.add-environment = (
     377    "db_server"   => "servername",
     378    "db_name"     => "mythconverg",
     379    "db_login"    => "mythtv",
     380    "db_password" => "password"
     381  )
     382
     383  url.rewrite-once = (
     384    "^/(css|data|images|js|themes|skins|[a-z_]+\.(php|pl)).*" => "$0",
     385    "^/(pl(/.*)?)$" => "/mythweb.pl/$1",
     386    "^/(.+)$"       => "/mythweb.php/$1",
     387    "^/(.*)$"       => "/mythweb.php"
     388  )
     389
     390  # Protip: If you want HTTP Digest Authentication, uncomment and
     391  # configure this section.  Set up the mythweb.htdigest file for your
     392  # users according to the normal lighttpd documentation.
     393
     394  # auth.backend = "htdigest"
     395  # auth.backend.htdigest.userfile = "/etc/lighttpd/mythweb.htdigest"
     396  # auth.require = (
     397  #   "/" => (
     398  #     "method"  => "digest",
     399  #     "realm"   => "MythTV",
     400  #     "require" => "valid-user"
     401  #   )
     402  # )
     403
     404  # Protip: Uncomment and configure this section if you aren't already
     405  # using fastcgi for PHP applications on your lighttpd server.  If
     406  # you're running mythweb as a virtual host, uncommenting this
     407  # section will allow it to run as its own unique and isolated
     408  # fastcgi instance.
     409
     410  # fastcgi.server = (
     411  #   ".php" => ((
     412  #     "bin-path" => "/usr/bin/php-cgi",
     413  #     "socket"   => "/var/run/lighttpd/mythtv-php-fcgi.socket",
     414  #     "broken-scriptfilename" => "enable",
     415  #     "bin-environment" => (
     416  #       "db_server"   => "localhost",
     417  #       "db_name"     => "mythconverg",
     418  #       "db_login"    => "mythtv",
     419  #       "db_password" => "mythtv"
     420  #     )
     421  #   ))
     422  # )
     423
     424  # Protip: You might already have perl CGIs handled in your lighttpd
     425  # config.  If you don't, you'll want this section.
     426
     427  # cgi.assign = (
     428  #   ".pl"  => "/usr/bin/perl"
     429  # )
     430
    365431=======
    3664327.0 PHP
    367433=======