lighttpd: Add comment.
[matthijs/servers/drsnuggles.git] / etc / lighttpd / lighttpd.conf
1 # Debian lighttpd configuration file
2 #
3
4 # Chroot into our root-dir
5 #server.chroot            = "/data/www"
6
7 #var.root-dir             = ""
8 var.root-dir             = "/data/www"
9 var.conf-dir             = "/etc/lighttpd"
10 var.fcgi-dir             = var.root-dir + "/var/fcgi"
11
12 ## modules to load
13 server.modules              = (
14             "mod_access",
15             "mod_alias",
16             "mod_accesslog",
17             "mod_rewrite",
18             "mod_redirect",
19             "mod_evhost",
20             "mod_cgi",
21             "mod_fastcgi",
22             "mod_auth",
23 )
24
25 # Set a default catch-all document root, which should never be used.
26 server.document-root       = var.root-dir + "/default/htdocs"
27
28 ## where to upload files to, purged daily.
29 server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
30
31 ## where to send error-messages to
32 server.errorlog            = var.root-dir + "/default/logs/error.log"
33
34 ## files to check for if .../ is requested
35 index-file.names           = ( "index.php", "index.html" )
36
37 #### accesslog module
38 accesslog.filename         = var.root-dir + "/default/logs/access.log"
39
40 ## deny access the file-extensions
41 #
42 # ~    is for backupfiles from vi, emacs, joe, ...
43 # .inc is often used for code includes which should in general not be part
44 #      of the document-root
45 url.access-deny            = ( "~", ".inc" )
46
47 ##
48 # which extensions should not be handle via static-file transfer
49 #
50 # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
51 static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
52
53 ## Use ipv6 only if available.
54 server.use-ipv6 = "disable"
55
56 ## to help the rc.scripts
57 server.pid-file            = "/var/run/lighttpd.pid"
58
59 ## virtual directory listings
60 dir-listing.encoding        = "utf-8"
61 # Disable dir-listing by default
62 server.dir-listing          = "disable"
63
64 # Don't run as root
65 server.username            = "www-data"
66 server.groupname           = "www-data"
67
68 # Make mysqll frontend available in all domains
69 alias.url                  += ("/mysql" => "/usr/share/phpmyadmin")
70
71 #### external configuration files
72 ## mimetype mapping
73 include_shell var.conf-dir + "/scripts/create-mime.assign.pl"
74
75 ## load vhosts
76 include_shell var.conf-dir + "/scripts/include-vhosts.pl"