1 # lighttpd configuration file
3 # use a it as base for lighttpd 1.0.0 and above
7 ############ Options you really have to take care of ####################
10 # at least mod_access and mod_accesslog should be loaded
11 # all other module should only be loaded if really neccesary
28 ## a static document-root, for virtual-hosting take look at the
29 ## server.virtual-* options
30 server.document-root = "/home/services/lighttpd/html/"
32 ## where to send error-messages to
33 server.errorlog = "/var/log/lighttpd/lighttpd.log"
35 # files to check for if .../ is requested
36 server.indexfiles = ( "index.php", "index.html",
37 "index.htm", "default.htm" )
40 mimetype.assign = ( ".png" => "image/png",
41 ".jpg" => "image/jpeg",
42 ".jpeg" => "image/jpeg",
43 ".gif" => "image/gif",
44 ".html" => "text/html",
45 ".htm" => "text/html",
46 ".pdf" => "application/pdf",
47 ".swf" => "application/x-shockwave-flash",
48 ".spl" => "application/futuresplash",
49 ".txt" => "text/plain",
50 ".tar.gz" => "application/x-tgz",
51 ".tgz" => "application/x-tgz",
52 ".gz" => "application/x-gzip",
54 ".conf" => "text/plain" )
56 # use "Content-Type" extended attribute for mime type if possible
57 # mimetype.use-xattr = "enable"
60 accesslog.filename = "/var/log/lighttpd/access.log"
62 ## deny access the file-extensions
64 # ~ is for backupfiles from vi, emacs, joe, ...
65 # .inc is often used for code includes which should in general not be part
66 # of the document-root
67 url.access-deny = ( "~", ".inc" )
71 ######### Options that are good to be but not neccesary to be changed #######
73 ## bind to port (default: 80)
76 ## bind to localhost (default: all interfaces)
77 #server.bind = "grisu.home.kneschke.de"
82 ## If you want name-based virtual hosting add the next three settings and load
86 ## virtual-server-root + virtual-server-default-host + virtual-server-docroot or
87 ## virtual-server-root + http-host + virtual-server-docroot
89 #simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
90 #simple-vhost.default-host = "grisu.home.kneschke.de"
91 #simple-vhost.document-root = "/pages/"
95 ## Format: <errorfile-prefix><status>.html
96 ## -> ..../status-404.html for 'File not found'
97 #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
99 ## virtual directory listings
100 #server.dir-listing = "enable"
102 ## send unhandled HTTP-header headers to error-log
103 #debug.dump-unknown-headers = "enable"
105 ### only root can use these options
107 # chroot() to directory (default: no chroot() )
110 ## change uid to <uid> (default: don't care)
111 server.username = "lighttpd"
113 ## change uid to <uid> (default: don't care)
114 server.groupname = "lighttpd"
117 #compress.cache-dir = "/tmp/lighttpd/cache/compress/"
118 #compress.filetype = ("text/plain", "text/html")
121 #fastcgi.server = ( ".php" =>
124 # "host" => "192.168.2.10",
131 #cgi.assign = ( ".pl" => "/usr/bin/perl",
132 # ".cgi" => "/usr/bin/perl" )
136 #ssl.engine = "enable"
137 #ssl.pemfile = "server.pem"
140 #status.rrd-reports = "enable"
141 #status.rrd-dir = "/home/weigon/wwwroot/logs/"
144 #auth.backend = "plain"
145 #auth.backend.plain.userfile = "lighttpd.user"
146 #auth.backend.plain.groupfile = "lighttpd.group"
148 #auth.backend.ldap.hostname = "localhost"
149 #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
150 #auth.backend.ldap.filter = "(uid=$)"
152 #auth.require = ( "/server-status" =>
154 # "method" => "digest",
155 # "realm" => "download archiv",
156 # "require" => "group=www|user=jan|host=192.168.2.10"
160 # "method" => "digest",
161 # "realm" => "download archiv",
162 # "require" => "group=www|user=jan|host=192.168.2.10"
166 #### url handling modules (rewrite, redirect, access)
167 #url.rewrite = ( "^/$" => "/server-status" )
168 #url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
171 #expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
174 #userdir.path = "public_html"
175 #userdir.exclude-user = ( "root", "postmaster" )
177 ## if set, only users from this list may use the feature
178 #userdir.include-user = ""
181 #alias.url = ( "/cgi-bin/" => "/var/www/servers/www.example.org/cgi-bin/" )