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"
26 # Set a default catch-all document root, which should never be used.
27 server.document-root = var.root-dir + "/default/htdocs"
29 ## where to upload files to, purged daily.
30 server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
32 ## where to send error-messages to
33 server.errorlog = var.root-dir + "/default/logs/error.log"
35 ## files to check for if .../ is requested
36 index-file.names = ( "index.php", "index.html" )
39 accesslog.filename = var.root-dir + "/default/logs/access.log"
41 ## deny access the file-extensions
43 # ~ is for backupfiles from vi, emacs, joe, ...
44 # .inc is often used for code includes which should in general not be part
45 # of the document-root
46 url.access-deny = ( "~", ".inc" )
49 # which extensions should not be handle via static-file transfer
51 # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
52 static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
54 ## Use ipv6 only if available.
55 server.use-ipv6 = "disable"
57 ## to help the rc.scripts
58 server.pid-file = "/var/run/lighttpd.pid"
60 ## virtual directory listings
61 dir-listing.encoding = "utf-8"
62 # Disable dir-listing by default
63 server.dir-listing = "disable"
66 server.username = "www-data"
67 server.groupname = "www-data"
69 # Make mysqll frontend available in all domains
70 alias.url += ("/mysql" => "/usr/share/phpmyadmin")
72 $SERVER["socket"] == ":443" {
74 # The CA certificates (in particular, this contains the intermediate
75 # certificate used by startcom). It seems that even without this
76 # option, it already works, probably because openssl ships some
77 # certificates. But, let's put it here to be safe anyway.
78 ssl.ca-file = "/etc/lighttpd/ssl/ca/startssl-all-ca.pem"
79 # Use the mail.stdin.nl certificate as the default certificate (for
80 # non-SNI browsers and domains without their own certificate), since
81 # it is currently the only one we have anyway.
82 ssl.pemfile = "/etc/lighttpd/ssl/mail.stdin.nl.pem"
85 #### external configuration files
87 include_shell var.conf-dir + "/scripts/create-mime.assign.pl"
90 include_shell var.conf-dir + "/scripts/include-vhosts.pl"