1 # Debian lighttpd configuration file
4 # Chroot into our root-dir
5 #server.chroot = "/data/www"
8 var.root-dir = "/data/www"
9 var.conf-dir = "/etc/lighttpd"
10 var.fcgi-dir = var.root-dir + "/var/fcgi"
25 # Set a default catch-all document root, which should never be used.
26 server.document-root = var.root-dir + "/default/htdocs"
28 ## where to upload files to, purged daily.
29 server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
31 ## where to send error-messages to
32 server.errorlog = var.root-dir + "/default/logs/error.log"
34 ## files to check for if .../ is requested
35 index-file.names = ( "index.php", "index.html" )
38 accesslog.filename = var.root-dir + "/default/logs/access.log"
40 ## deny access the file-extensions
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" )
48 # which extensions should not be handle via static-file transfer
50 # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
51 static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
53 ## Use ipv6 only if available.
54 server.use-ipv6 = "disable"
56 ## to help the rc.scripts
57 server.pid-file = "/var/run/lighttpd.pid"
59 ## virtual directory listings
60 dir-listing.encoding = "utf-8"
61 # Disable dir-listing by default
62 server.dir-listing = "disable"
65 server.username = "www-data"
66 server.groupname = "www-data"
68 #### external configuration files
70 include_shell var.conf-dir + "/scripts/create-mime.assign.pl"
73 include_shell var.conf-dir + "/scripts/include-vhosts.pl"