2017-04-19 23:14:33 +02:00
|
|
|
server.port = 8080
|
|
|
|
server.username = "backuppc"
|
|
|
|
server.groupname = "backuppc"
|
|
|
|
server.document-root = "/srv/http"
|
|
|
|
server.errorlog = "/var/log/lighttpd/error.log"
|
|
|
|
dir-listing.activate = "enable"
|
|
|
|
index-file.names = ( "index.html", "index.php", "index.cgi" )
|
2017-08-13 22:08:06 +02:00
|
|
|
mimetype.assign = ( ".html" => "text/html", ".txt" => "text/plain", ".jpg" => "image/jpeg", ".png" => "image/png", ".gif" => "image/gif", ".css" => "text/css", ".js" => "text/javascript", "" => "application/octet-stream" )
|
2017-04-19 23:14:33 +02:00
|
|
|
|
|
|
|
server.modules = ( "mod_alias", "mod_cgi", "mod_auth", "mod_access", "mod_rewrite", "mod_redirect" )
|
|
|
|
|
|
|
|
alias.url = ( "/BackupPC_Admin" => "/var/www/cgi-bin/BackupPC/BackupPC_Admin" )
|
|
|
|
alias.url += ( "/BackupPC" => "/var/www/html/BackupPC" )
|
|
|
|
|
|
|
|
cgi.assign += ( ".cgi" => "/usr/bin/perl" )
|
|
|
|
cgi.assign += ( "BackupPC_Admin" => "/usr/bin/perl" )
|
|
|
|
|
|
|
|
auth.backend = "htpasswd"
|
|
|
|
auth.backend.htpasswd.userfile = "/etc/backuppc/htpasswd"
|
|
|
|
auth.require = ( "/BackupPC_Admin" => ( "method" => "basic", "realm" => "BackupPC", "require" => "valid-user" ) )
|
|
|
|
|
|
|
|
url.redirect = ("^/$" => "/BackupPC_Admin")
|