Annotation of embedaddon/lighttpd/tests/404-handler.conf, revision 1.1
1.1 ! misho 1: debug.log-request-handling = "enable"
! 2: debug.log-response-header = "enable"
! 3: debug.log-request-header = "enable"
! 4:
! 5: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
! 6:
! 7: ## bind to port (default: 80)
! 8: server.port = 2048
! 9:
! 10: ## bind to localhost (default: all interfaces)
! 11: server.bind = "localhost"
! 12: server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
! 13: server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
! 14: server.name = "www.example.org"
! 15: server.tag = "Apache 1.3.29"
! 16:
! 17:
! 18: server.modules = (
! 19: "mod_fastcgi",
! 20: "mod_cgi",
! 21: "mod_accesslog" )
! 22:
! 23: ######################## MODULE CONFIG ############################
! 24:
! 25:
! 26: accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
! 27:
! 28: mimetype.assign = ( ".html" => "text/html" )
! 29:
! 30: cgi.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: }
! 47: else $HTTP["url"] =~ "." {
! 48: server.error-handler-404 = "/404.pl"
! 49: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>