BackupPC-users

Re: [BackupPC-users] Backuppc on Lighttpd

2009-01-19 14:51:41
Subject: Re: [BackupPC-users] Backuppc on Lighttpd
From: Juergen Harms <Juergen.Harms AT unige DOT ch>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Mon, 19 Jan 2009 20:49:15 +0100
Thanks once more:
    index-file.names = ( "BackupPC_Admin.cgi" )
does the job - using http://<site>/backuppc now works as it should, no 
need any more to append the name of the cgi file.

However,
     cgi.assign += ( ".cgi" => "" )
does mischief - it makes lighttpd forget that it must call the cgi code 
when it sees a <filename>.cgi> file - my script only works if I keep
     cgi.assign = ( ".cgi" => "/usr/bin/perl" )
which looks normal to me.

I append the significant part of my script. Principal difference with 
respect to the template script from the sourceforge howto:
   - authentification is skipped for local calls on the server
   - the URL can be <site>/backuppc/?host=<client-name> - something you
     frequently want and which suppresses the need to start with the
     server page (in my mozilla taskbar I have a folder with backuppc
     URLs which behaves like a pulldown menu - server, pc1, pc2 ...)

---------

$HTTP["host"] =~ "^pcjuergen($|.unige.ch)" {
     $HTTP["url"] =~ "^/backuppc($|/)" {
        server.document-root = "/var/www/backuppc"
        alias.url = ( "/backuppc" => "/var/www/backuppc" )
        dir-listing.activate = "disable"
        index-file.names = ( "BackupPC_Admin.cgi" )
        $HTTP["remoteip"] != "127.0.0.1" {
            auth.backend = "htpasswd"
            auth.backend.htpasswd.userfile = "/var/www/passwd/lighttpd"
            auth.require += ( "" => (   "method" => "basic",
                                        "realm" => "BackupPC",
                                        "require" => "valid-user" ) )
        }
     }
     $HTTP["url"] =~ "^/webdav($|/)" {
        $HTTP["url"] =~ "^/webdav/fox_" {

              etc.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/