~ubuntu-branches/ubuntu/gutsy/lighttpd/gutsy-updates

« back to all changes in this revision

Viewing changes to tests/404-handler.conf

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2007-09-05 09:30:15 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070905093015-pm98jekbu9ylcd3w
Tags: 1.4.17-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Update maintainer field in debian/control.
  - Build against libgamin-dev rather than libfam-dev (fixes a warning
    during startup)
  - Make sure that upgrades succeed, even if we can't restart lighttpd.
  - Clean environment in init.d script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
server.pid-file              = env.SRCDIR + "/tmp/lighttpd/lighttpd.pid"
 
7
 
 
8
## bind to port (default: 80)
 
9
server.port                 = 2048
 
10
 
 
11
## bind to localhost (default: all interfaces)
 
12
server.bind                = "localhost"
 
13
server.errorlog            = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.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
}