This is an old revision of the document!

I could not get the Lightspd cgi component to work properly until I enabled the auth module and set a username and password on the cgi-bin directory. BackupPC uses the REMOTE_USER env to check if you are logged in.

To set this up I uncommented the “mod_auth” line and added

auth.backend               = "plain"
auth.backend.plain.userfile = "/ffp/etc/lighttpd.user"

auth.require               = ( "/cgi-bin" =>
                                 "method"  => "basic",
                                 "realm"   => "BackupPC",
                                 "require" => "valid-user"

The lighttpd.user file is simply a USERNAME:PASSWORD style

Some good info at:

To use the web interface I needed to specify the backuppc username in the /ffp/etc/lighttpd.conf:

## change uid to <uid> (default: don't care)
server.username            = "backuppc"

## change uid to <uid> (default: don't care)
server.groupname           = "backuppc"


Personal Tools