Hey,
I have some big trouble with my lighttpd web server.
The interessting script wget4web will not work.
The webserver get the failure "403 - Forbidden".
I have change the security of the folder and the script of 777.
The lighttpd webserver will not run the cgi script.
Must the cgi file in a spezial folder or is my config wrong?
Thanks for help.
friendly greetings
SOJ :)
My lighttpd config:
[[code]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"
dir-listing.activate = "enable"
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/local/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",
)),
".php" => (( "bin-path" => "/opt/bin/php-fcgi",
"socket" => "/tmp/php.socket",
)),
)
[[/code]]