Mythweb 0.27 on Lighttpd

I updated Mythweb to 0.27 and it broke! Well sort of….the mythweb.conf.lighttpd configuration file assumes you are doing a web root install but the port installs to /usr/local/www/mythweb, a sub-directory of the ¬†web root. I was getting a lot of HTTP 404 errors (dcss/video.css.php was the one that made me look at url rewrite). The solution for me was to tweak the lighttpd rewrite configuration.

$HTTP["url"] =~ "^/+mythweb/" {
  url.rewrite-once = (
    "^/+mythweb/(css|data|images|js|themes|skins|[a-z_]+.(php|pl)).*" => "$0",
    "^/+mythweb/(pl(/.*)?)$" => "/mythweb/$1",
    "^/+mythweb/(.+)$"       => "/mythweb/mythweb.php/$1",
    "^/+mythweb/(.*)$"       => "/mythweb/mythweb.php"

I also had to edit mythweb/includes/init.php as outlined at

BTW, my fix for video cover art still works!


No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *