]> git.pld-linux.org Git - packages/lighttpd.git/blob - lighttpd.conf
- fixess for issues #10 and #11
[packages/lighttpd.git] / lighttpd.conf
1 # lighttpd configuration file
2 #
3 # use a it as base for lighttpd 1.0.0 and above
4 #
5 # $Id$
6
7 ############ Options you really have to take care of ####################
8
9 ## modules to load
10 # at least mod_access and mod_accesslog should be loaded
11 # all other module should only be loaded if really neccesary
12 # - saves some time
13 # - saves memory
14
15 server.modules = (
16 #       "mod_rewrite",
17 #       "mod_redirect",
18 #       "mod_alias",
19         "mod_access",
20 #       "mod_auth",
21 #       "mod_status",
22 #       "mod_setenv",
23 #       "mod_fastcgi",
24 #       "mod_proxy",
25 #       "mod_simple_vhost",
26 #       "mod_evhost",
27 #       "mod_userdir",
28 #       "mod_cgi",
29 #       "mod_compress",
30 #       "mod_ssi",
31 #       "mod_usertrack",
32 #       "mod_expire",
33 #       "mod_secdownload",
34 #       "mod_rrdtool",
35 #       "mod_localizer",
36         "mod_accesslog",
37 )
38
39 ## a static document-root, for virtual-hosting take look at the
40 ## server.virtual-* options
41 server.document-root = "/home/services/lighttpd/html/"
42
43 ## where to send error-messages to
44 server.errorlog = "/var/log/lighttpd/lighttpd.log"
45
46 # files to check for if .../ is requested
47 server.indexfiles = (
48         "index.php",
49         "index.html",
50         "index.htm",
51         "default.htm",
52 )
53
54 # mimetype mapping
55 mimetype.assign = (
56         ".pdf"          =>      "application/pdf",
57         ".sig"          =>      "application/pgp-signature",
58         ".spl"          =>      "application/futuresplash",
59         ".class"        =>      "application/octet-stream",
60         ".ps"           =>      "application/postscript",
61         ".torrent"      =>      "application/x-bittorrent",
62         ".dvi"          =>      "application/x-dvi",
63         ".gz"           =>      "application/x-gzip",
64         ".pac"          =>      "application/x-ns-proxy-autoconfig",
65         ".swf"          =>      "application/x-shockwave-flash",
66         ".tar.gz"       =>      "application/x-tgz",
67         ".tgz"          =>      "application/x-tgz",
68         ".tar"          =>      "application/x-tar",
69         ".zip"          =>      "application/zip",
70         ".mp3"          =>      "audio/mpeg",
71         ".m3u"          =>      "audio/x-mpegurl",
72         ".wma"          =>      "audio/x-ms-wma",
73         ".wax"          =>      "audio/x-ms-wax",
74         ".ogg"          =>      "audio/x-wav",
75         ".wav"          =>      "audio/x-wav",
76         ".gif"          =>      "image/gif",
77         ".jpg"          =>      "image/jpeg",
78         ".jpeg"         =>      "image/jpeg",
79         ".png"          =>      "image/png",
80         ".xbm"          =>      "image/x-xbitmap",
81         ".xpm"          =>      "image/x-xpixmap",
82         ".xwd"          =>      "image/x-xwindowdump",
83         ".css"          =>      "text/css",
84         ".html"         =>      "text/html",
85         ".htm"          =>      "text/html",
86         ".js"           =>      "text/javascript",
87         ".asc"          =>      "text/plain",
88         ".c"            =>      "text/plain",
89         ".conf"         =>      "text/plain",
90         ".text"         =>      "text/plain",
91         ".txt"          =>      "text/plain",
92         ".dtd"          =>      "text/xml",
93         ".xml"          =>      "text/xml",
94         ".mpeg"         =>      "video/mpeg",
95         ".mpg"          =>      "video/mpeg",
96         ".mov"          =>      "video/quicktime",
97         ".qt"           =>      "video/quicktime",
98         ".avi"          =>      "video/x-msvideo",
99         ".asf"          =>      "video/x-ms-asf",
100         ".asx"          =>      "video/x-ms-asf",
101         ".wmv"          =>      "video/x-ms-wmv"
102 )
103
104 # Use the "Content-Type" extended attribute to obtain mime type if possible
105 #mimetype.use-xattr = "enable"
106
107 ## send a different Server: header
108 ## be nice and keep it at lighttpd
109 #server.tag = "lighttpd"
110
111 #### accesslog module
112 accesslog.filename = "/var/log/lighttpd/access.log"
113
114 ## deny access the file-extensions
115 #
116 # ~    is for backupfiles from vi, emacs, joe, ...
117 # .inc is often used for code includes which should in general not be part
118 #      of the document-root
119 url.access-deny = ( "~", ".inc" )
120
121 ######### Options that are good to be but not neccesary to be changed #######
122
123 ## bind to port (default: 80)
124 #server.port = 81
125
126 ## bind to localhost (default: all interfaces)
127 #server.bind = "grisu.home.kneschke.de"
128
129 ## error-handler for status 404
130 #server.error-handler-404 = "/error-handler.html"
131 #server.error-handler-404 = "/error-handler.php"
132
133 ## to help the rc.scripts
134 #server.pid-file = "/var/run/lighttpd.pid"
135
136 ###### virtual hosts
137 ##
138 ##   If you want name-based virtual hosting add the next three settings and load
139 ##   mod_simple_vhost
140 ##
141 ## document-root =
142 ##   virtual-server-root + virtual-server-default-host + virtual-server-docroot or
143 ##   virtual-server-root + http-host + virtual-server-docroot
144 ##
145 #simple-vhost.server-root         = "/home/weigon/wwwroot/servers/"
146 #simple-vhost.default-host        = "grisu.home.kneschke.de"
147 #simple-vhost.document-root       = "/pages/"
148
149
150 ##
151 ## Format: <errorfile-prefix><status>.html
152 ## -> ..../status-404.html for 'File not found'
153 #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
154
155 ## virtual directory listings
156 #server.dir-listing          = "enable"
157
158 ## enable debugging
159 #debug.log-request-header    = "enable"
160 #debug.log-response-header   = "enable"
161 #debug.log-request-handling  = "enable"
162 #debug.log-file-not-found    = "enable"
163
164 ### only root can use these options
165 #
166 # chroot() to directory (default: no chroot() )
167 #server.chroot            = "/"
168
169 ## change uid to <uid> (default: don't care)
170 server.username            = "lighttpd"
171
172 ## change uid to <uid> (default: don't care)
173 server.groupname           = "lighttpd"
174
175 #### compress module
176 #compress.cache-dir          = "/tmp/lighttpd/cache/compress/"
177 #compress.filetype           = ("text/plain", "text/html")
178
179 #### proxy module
180 ## read proxy.txt for more info
181 #proxy.server = (
182 #       ".php" => (
183 #               "localhost" => (
184 #                       "host" => "192.168.0.101",
185 #                       "port" => 80,
186 #               )
187 #       )
188 #)
189
190 #### fastcgi module
191 ## read fastcgi.txt for more info
192 #fastcgi.debug = 1
193 #fastcgi.server = (
194 #       ".php" => (
195 #               "localhost" => (
196 #                       "socket" => "/var/run/php/php-fastcgi.sock",
197 #                       "bin-path" => "/usr/bin/php.fcgi",
198 #               )
199 #       )
200 #)
201
202
203 #### CGI module
204 #cgi.assign = (
205 #       ".pl"  => "/usr/bin/perl",
206 #       ".cgi" => "/usr/bin/perl",
207 #)
208
209 #### SSL engine
210 #ssl.engine = "enable"
211 #ssl.pemfile = "server.pem"
212
213 #### status module
214 #status.status-url = "/server-status"
215 #status.config-url = "/server-config"
216
217 #### auth module
218 ## read authentification.txt for more info
219 ## debugging
220 # 0 for off, 1 for 'auth-ok' messages, 2 for verbose debugging
221 #auth.debug = 1
222 ## type of backend
223 # plain, htpasswd, ldap or htdigest
224 #auth.backend = "plain"
225 # filename of the password storage
226 ## for plain
227 #auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user"
228 #auth.backend.plain.groupfile = "/etc/lighttpd/lighttpd.group"
229 ## for htpasswd
230 #auth.backend.htpasswd.userfile = "/etc/lighttpd/lighttpd-htpasswd.user"
231 ## for htdigest
232 #auth.backend.htdigest.userfile = "/etc/lighttpd/lighttpd-htdigest.user"
233 ## for ldap
234 # the $ in auth.backend.ldap.filter is replaced by the
235 # 'username' from the login dialog
236 #auth.backend.ldap.hostname = "localhost"
237 #auth.backend.ldap.base-dn  = "dc=my-domain,dc=com"
238 #auth.backend.ldap.filter   = "(uid=$)"
239
240 #auth.require = (
241 #       "/server-status" => (
242 #               "method"  => "digest",
243 #               "realm"   => "download archiv",
244 #               "require" => "user=agent007|user=agent008"
245 #       ),
246 #       "/server-info" => (
247 #               "method"  => "digest",
248 #               "realm"   => "download archiv",
249 #               "require" => "group=www|user=jan|host=192.168.2.10"
250 #       ),
251 #       "/server-config" => (
252 #               "method"  => "ldap",
253 #               "realm"   => "server config",
254 #               "require" => "user=glen"
255 #       ),
256 #)
257
258
259 #### url handling modules (rewrite, redirect, access)
260 #url.rewrite = (
261 #       "^/$" => "/server-status",
262 #)
263 #url.redirect = (
264 #       "^/wishlist/(.+)" => "http://www.123.org/$1",
265 #)
266
267 # define a pattern for the host url finding
268 # %% => % sign
269 # %0 => domain name + tld
270 # %1 => tld
271 # %2 => domain name without tld
272 # %3 => subdomain 1 name
273 # %4 => subdomain 2 name
274 #
275 #evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
276
277 #### expire module
278 #expire.url = (
279 #       "/buggy/" => "access 2 hours",
280 #       "/asdhas/" => "access plus 1 seconds 2 minutes",
281 #)
282
283 #### ssi
284 #ssi.extension = ( ".shtml" )
285
286 #### rrdtool
287 #rrdtool.binary = "/usr/bin/rrdtool"
288 #rrdtool.db-name = "/var/www/lighttpd.rrd"
289
290 #### setenv
291 #setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
292 #setenv.add-response-header = ( "X-Secret-Message" => "42" )
293
294 #### userdir module
295 #userdir.path = "public_html"
296 #userdir.exclude-user = ( "root", "postmaster" )
297 #
298 ## if set, only users from this list may use the feature
299 #userdir.include-user = ""
300
301 #### alias module
302 #alias.url = (
303 #       "/cgi-bin/" => "/usr/lib/cgi-bin",
304 #)
305
This page took 0.047596 seconds and 3 git commands to generate.