quick howto for lighttpd

Home Forums Third Party Enhancements VLC Shares quick howto for lighttpd

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23476
    chazman14
    Participant

    Hi, all, I just got vlc-shares running on Lighttpd on Debian Stable, and thought I’d share.

    It’s just a quick workaround to handle the fact that lighttpd doesn’t read apache .htaccess files.

    alias.url += ( “/vlc” => “/var/www/vlcshares/public” )
    $HTTP[“url”] =~ “^/vlc/” {
    server.error-handler-404 = “/vlc/index.php”
    }

    That’ll put vlcshare in http://hostname/vlc

    If you want to password protect the web app:

    auth.require = (
    “/vlc” => ( “method” => “basic”, “realm” => “vlc-shares”, “require” => “valid-user”)
    )

    I won’t go into how to set up HTTP auth in Lighty, that’s well documented.

    #28701
    zany130
    Participant

    You have also to add a line for rewrite rules.

    url.rewrite-once = (".*.(js|ico|gif|jpg|png|css)$" => "$0", "" => "/index.php")
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘VLC Shares’ is closed to new topics and replies.

Login

Lost Password