summaryrefslogtreecommitdiff
path: root/tests/404-handler.conf
diff options
context:
space:
mode:
authorMarcus Rückert <darix@opensu.se>2007-08-13 11:09:11 +0000
committerMarcus Rückert <darix@opensu.se>2007-08-13 11:09:11 +0000
commit029d32039cdb0f52bcf5be83efef17ecdaf26666 (patch)
tree6b833862474ba34cfed21a2a695c7c63680edf7f /tests/404-handler.conf
parent984f5caf57d140f20a6c85b885be5ad7d48efaa6 (diff)
downloadlighttpd1.4-029d32039cdb0f52bcf5be83efef17ecdaf26666.tar.gz
lighttpd1.4-029d32039cdb0f52bcf5be83efef17ecdaf26666.zip
- fixed 404 testsuite
- added optional fastcgi handler git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1898 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/404-handler.conf')
-rw-r--r--tests/404-handler.conf23
1 files changed, 16 insertions, 7 deletions
diff --git a/tests/404-handler.conf b/tests/404-handler.conf
index ef2ee410..713a8a5e 100644
--- a/tests/404-handler.conf
+++ b/tests/404-handler.conf
@@ -1,4 +1,6 @@
debug.log-request-handling = "enable"
+debug.log-response-header = "enable"
+debug.log-request-header = "enable"
server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
server.pid-file = env.SRCDIR + "/tmp/lighttpd/lighttpd.pid"
@@ -14,6 +16,7 @@ server.tag = "Apache 1.3.29"
server.modules = (
+ "mod_fastcgi",
"mod_cgi",
"mod_accesslog" )
@@ -26,15 +29,21 @@ 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",
+# )
+# ),
+# )
+
$HTTP["url"] =~ "^/static/" {
server.error-handler-404 = "/404.html"
}
-else $HTTP["url"] =~ "^/dynamic/200/" {
- server.error-handler-404 = "/404.pl"
-}
-else $HTTP["url"] =~ "^/dynamic/302/" {
- server.error-handler-404 = "/404.pl"
-}
-else $HTTP["url"] =~ "^/dynamic/404/" {
+else $HTTP["url"] =~ "^/dynamic/" {
server.error-handler-404 = "/404.pl"
}