Skip to content

Commit

Permalink
Fix deprecation warnings in lighttpd
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Ferrand committed Nov 13, 2023
1 parent fecbfa2 commit 40f702e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions files/auth-ldap.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
server.modules += ( "mod_authn_ldap" )

auth.backend = "ldap"
auth.backend.ldap.hostname = "LDAP_HOSTNAME"
auth.backend.ldap.base-dn = "LDAP_BASE_DN"
Expand Down
8 changes: 5 additions & 3 deletions files/auth.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/backuppc/htpasswd"
auth.require = ( "/BackupPC_Admin" => ( "method" => "basic", "realm" => "BackupPC", "require" => "valid-user" ) )
server.modules += ( "mod_authn_file" )

auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/backuppc/htpasswd"

auth.require = ( "/BackupPC_Admin" => ( "method" => "basic", "realm" => "BackupPC", "require" => "valid-user" ) )
6 changes: 3 additions & 3 deletions files/lighttpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ server.username = env.BACKUPPC_USERNAME
server.groupname = env.BACKUPPC_GROUPNAME
server.document-root = "/srv/http"
server.errorlog = "/var/log/lighttpd/error.log"
server.modules = ( "mod_alias", "mod_auth", "mod_cgi", "mod_access", "mod_rewrite", "mod_redirect" )

dir-listing.activate = "enable"
index-file.names = ( "index.html", "index.php", "index.cgi" )
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" )

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" )

url.redirect = ("^/(\?.*)?$" => "/BackupPC_Admin$1")
url.redirect = ("^/(\?.*)?$" => "/BackupPC_Admin$1")

0 comments on commit 40f702e

Please sign in to comment.