server.document-root = "/usr/www/lib/" server.pid-file = "/var/run/lighttpd.pid" server.errorlog = "/var/log/lighttpd/error.log" server.port = 80 server.username = "www-data" server.groupname = "www-data" server.modules = ( "mod_auth", "mod_access", "mod_alias", "mod_cgi", "mod_fastcgi", "mod_accesslog" ) server.errorfile-prefix = "/usr/www/lib/error-" mimetype.assign = ( ".html" => "text/html", ".txt" => "text/plain", ".jpg" => "image/jpeg", ".png" => "image/png", ".gif" => "image/gif", ".css" => "text/css" ) accesslog.filename = "/var/log/lighttpd/access.log" static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc", ".cgi" ) index-file.names = ( "nasMaster.pl" ) # bruce - I don't think we need this now... #cgi.assign = ( ".cgi" => "/usr/bin/perl" ) alias.url = ( "/auth" => "/usr/www/lib" ) auth.backend = "htdigest" auth.backend.htdigest.userfile = "/var/private/lighttpd.htdigest.user" auth.require = ( "/auth" => ( "method" => "digest", "realm" => "nas admin", "require" => "valid-user" # bruce - removed user= # "require" => "user=admin" ) ) fastcgi.debug = 0 # Bruce - Removed host & port and replaced with a socket # "host" => "127.0.0.1", # "port" => 1026, fastcgi.server = ( ".pl" => (( "socket" => "/tmp/lighttpd.fcgi.socket", "bin-path" => "/usr/www/lib/nasMaster.pl", "check-local" => "disable", "min-procs" => 1, "max-procs" => 1, "idle-timeout" => 30, "bin-environment" => ( # Environment variables for nasMaster.pl "PERL5LIB" => "/usr/www/lib", "NAS_NBIN" => "/usr/www/nbin", ), )), "nasMaster.pl" => (( "socket" => "/tmp/lighttpd.fcgi.socket", "check-local" => "disable", )) )