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
26 ## a static document-root, for virtual-hosting take look at the
27 ## server.virtual-* options
28 server.document-root = "/home/services/httpd/html/"
30 ## where to send error-messages to
31 server.errorlog = "/var/log/lighttpd/lighttpd.log"
33 # files to check for if .../ is requested
34 server.indexfiles = ( "index.php", "index.html",
35 "index.htm", "default.htm" )
38 mimetype.assign = ( ".png" => "image/png",
39 ".jpg" => "image/jpeg",
40 ".jpeg" => "image/jpeg",
41 ".gif" => "image/gif",
42 ".html" => "text/html",
43 ".htm" => "text/html",
44 ".pdf" => "application/pdf",
45 ".swf" => "application/x-shockwave-flash",
46 ".spl" => "application/futuresplash",
47 ".txt" => "text/plain",
48 ".tar.gz" => "application/x-tgz",
49 ".tgz" => "application/x-tgz",
50 ".gz" => "application/x-gzip",
52 ".conf" => "text/plain" )
55 accesslog.filename = "/var/log/lighttpd/access.log"
57 ## deny access the file-extensions
59 # ~ is for backupfiles from vi, emacs, joe, ...
60 # .inc is often used for code includes which should in general not be part
61 # of the document-root
62 url.access-deny = ( "~", ".inc" )
66 ######### Options that are good to be but not neccesary to be changed #######
68 ## bind to port (default: 80)
71 ## bind to localhost (default: all interfaces)
72 #server.bind = "grisu.home.kneschke.de"
77 ## If you want name-based virtual hosting add the next three settings and load
81 ## virtual-server-root + virtual-server-default-host + virtual-server-docroot or
82 ## virtual-server-root + http-host + virtual-server-docroot
84 #simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
85 #simple-vhost.default-host = "grisu.home.kneschke.de"
86 #simple-vhost.document-root = "/pages/"
90 ## Format: <errorfile-prefix><status>.html
91 ## -> ..../status-404.html for 'File not found'
92 #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
94 ## virtual directory listings
95 #server.dir-listing = "enable"
97 ## send unhandled HTTP-header headers to error-log
98 #debug.dump-unknown-headers = "enable"
100 ### only root can use these options
102 # chroot() to directory (default: no chroot() )
105 ## change uid to <uid> (default: don't care)
106 #server.username = "wwwrun"
108 ## change uid to <uid> (default: don't care)
109 #server.groupname = "wwwrun"
112 #compress.cache-dir = "/tmp/lighttpd/cache/compress/"
113 #compress.filetype = ("text/plain", "text/html")
116 #fastcgi.server = ( ".php" =>
119 # "host" => "192.168.2.10",
126 #cgi.assign = ( ".pl" => "/usr/bin/perl",
127 # ".cgi" => "/usr/bin/perl" )
131 #ssl.engine = "enable"
132 #ssl.pemfile = "server.pem"
135 #status.rrd-reports = "enable"
136 #status.rrd-dir = "/home/weigon/wwwroot/logs/"
139 #auth.backend = "plain"
140 #auth.backend.plain.userfile = "lighttpd.user"
141 #auth.backend.plain.groupfile = "lighttpd.group"
143 #auth.require = ( "/server-status" =>
145 # "method" => "digest",
146 # "realm" => "download archiv",
147 # "require" => "group=www|user=jan|host=192.168.2.10"
151 # "method" => "digest",
152 # "realm" => "download archiv",
153 # "require" => "group=www|user=jan|host=192.168.2.10"
157 #### url handling modules (rewrite, redirect, access)
158 #url.rewrite = ( "^/$" => "/server-status" )
159 #url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )