Re: [BackupPC-users] Backuppc on Lighttpd
2009-01-19 15:00:33
The cgi.assign I was using tells lighttpd to run that script directly, using
the #! Path on the first line of the script. This would enact setuid
permissions, while if the script is passed as an argument to perl, I would
think that it wouldn't honor setuid permissions. (unless you're running
lighttpd as backuppc)
If it's working, great...
-G
> -----Original Message-----
> From: Juergen Harms [mailto:Juergen.Harms AT unige DOT ch]
> Sent: Monday, January 19, 2009 2:49 PM
> To: General list for user discussion, questions and support
> Subject: Re: [BackupPC-users] Backuppc on Lighttpd
>
> 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/
>
------------------------------------------------------------------------------
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/
|
|
|