| | 366 | If you're running mythweb as a virtual host, include the following |
| | 367 | inside 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 | |