diff options
author | Stefan Bühler <stbuehler@web.de> | 2015-08-22 20:51:08 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2015-08-22 20:51:08 +0000 |
commit | 87c5ec96517b9f551f5a6100c9e689073369a669 (patch) | |
tree | 5ebb8e804634a3414221e57def275a7594edfa81 /tests/404-handler.conf | |
parent | 5c48617737796edb53fe9d89dbc179465fec5cb9 (diff) | |
download | lighttpd-git-87c5ec96517b9f551f5a6100c9e689073369a669.tar.gz |
[tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups
From: Stefan Bühler <stbuehler@web.de>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3019 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/404-handler.conf')
-rw-r--r-- | tests/404-handler.conf | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/tests/404-handler.conf b/tests/404-handler.conf index 03dfd973..e07ff3f9 100644 --- a/tests/404-handler.conf +++ b/tests/404-handler.conf @@ -15,35 +15,28 @@ server.name = "www.example.org" server.tag = "Apache 1.3.29" -server.modules = ( - "mod_fastcgi", - "mod_cgi", - "mod_accesslog" ) +server.modules = ( + "mod_fastcgi", + "mod_cgi", + "mod_accesslog", +) ######################## MODULE CONFIG ############################ accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log" -mimetype.assign = ( ".html" => "text/html" ) +mimetype.assign = ( + ".html" => "text/html", +) -cgi.assign = (".pl" => "/usr/bin/perl" ) - -# fastcgi.server += ( "/404.pl" => -# ( "404-handler" => -# ( -# "socket" => env.SRCDIR + "/tmp/pl-404-fastcgi-1.socket", -# "bin-path" => server.document-root + "/404.pl", -# "max-procs" => 1, -# "check-local" => "disable", -# "broken-scriptfilename" => "enable", -# ) -# ), -# ) +cgi.assign = ( + ".pl" => env.PERL, +) $HTTP["url"] =~ "^/static/" { - server.error-handler-404 = "/404.html" + server.error-handler-404 = "/404.html" } else $HTTP["url"] =~ "." { - server.error-handler-404 = "/404.pl" + server.error-handler-404 = "/404.pl" } |