1debug.log-request-handling = "enable" 2debug.log-response-header = "enable" 3debug.log-request-header = "enable" 4 5server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 6 7## bind to port (default: 80) 8server.port = 2048 9 10## bind to localhost (default: all interfaces) 11server.bind = "localhost" 12server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log" 13server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log" 14server.name = "www.example.org" 15server.tag = "Apache 1.3.29" 16 17 18server.modules = ( 19 "mod_fastcgi", 20 "mod_cgi", 21 "mod_accesslog" ) 22 23######################## MODULE CONFIG ############################ 24 25 26accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log" 27 28mimetype.assign = ( ".html" => "text/html" ) 29 30cgi.assign = (".pl" => "/usr/bin/perl" ) 31 32# fastcgi.server += ( "/404.pl" => 33# ( "404-handler" => 34# ( 35# "socket" => env.SRCDIR + "/tmp/pl-404-fastcgi-1.socket", 36# "bin-path" => server.document-root + "/404.pl", 37# "max-procs" => 1, 38# "check-local" => "disable", 39# "broken-scriptfilename" => "enable", 40# ) 41# ), 42# ) 43 44$HTTP["url"] =~ "^/static/" { 45 server.error-handler-404 = "/404.html" 46} 47else $HTTP["url"] =~ "." { 48 server.error-handler-404 = "/404.pl" 49} 50