]>
Commit | Line | Data |
---|---|---|
1 | # $Id$ | |
2 | # lighttpd configuration file. | |
3 | ||
4 | include_shell "/bin/cat conf.d/*.conf" | |
5 | ||
6 | ## a static document-root, for virtual-hosting take look at the | |
7 | ## server.virtual-* options | |
8 | server.document-root = "/home/services/lighttpd/html/" | |
9 | ||
10 | ## where to send error-messages to | |
11 | server.errorlog = "/var/log/lighttpd/error.log" | |
12 | #server.errorlog-use-syslog = "enable" | |
13 | ||
14 | server.pid-file = "/var/run/lighttpd.pid" | |
15 | ||
16 | # mimetype mapping | |
17 | include "mime.types.conf" | |
18 | # default mime type | |
19 | mimetype.assign += ( | |
20 | "" => "application/octet-stream", | |
21 | ) | |
22 | ||
23 | ## set the event-handler (read the performance section in the manual) | |
24 | # Linux 2.4+ rt-signals linux-rtsig | |
25 | # Linux 2.6+ epoll linux-sysepoll | |
26 | #server.event-handler = "linux-sysepoll" | |
27 | ||
28 | # maximum number of seconds until a waiting write call times out and closes the connection | |
29 | # default 360 | |
30 | #server.max-write-idle = 360 | |
31 | ||
32 | # Use the "Content-Type" extended attribute to obtain mime type if possible | |
33 | #mimetype.use-xattr = "enable" | |
34 | ||
35 | ## send a different Server: header | |
36 | ## be nice and keep it at lighttpd | |
37 | #server.tag = "lighttpd" | |
38 | ||
39 | $HTTP["url"] =~ "\.pdf$" { | |
40 | server.range-requests = "disable" | |
41 | } | |
42 | ||
43 | ######### Options that are good to be but not neccesary to be changed ####### | |
44 | ||
45 | ## bind to port (default: 80) | |
46 | server.port = 80 | |
47 | ||
48 | ## bind to specific host (default: all interfaces) | |
49 | ## the name is resolved to ip at startup only. | |
50 | #server.bind = "grisu.home.kneschke.de" | |
51 | ||
52 | ## additionally just bind to localhost:80 | |
53 | #$SERVER["socket"] == "127.0.0.1:80" {} | |
54 | ||
55 | ## error-handler for status 404 | |
56 | #server.error-handler-404 = "/error-handler.html" | |
57 | #server.error-handler-404 = "/error-handler.php" | |
58 | ||
59 | ## | |
60 | ## Format: <errorfile-prefix><status-code>.html | |
61 | ## -> ..../status-404.html for 'File not found' | |
62 | #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-" | |
63 | # | |
64 | ## enable debugging | |
65 | #debug.log-request-header = "enable" | |
66 | #debug.log-response-header = "enable" | |
67 | #debug.log-request-handling = "enable" | |
68 | #debug.log-file-not-found = "enable" | |
69 | #debug.log-condition-handling = "enable" | |
70 | ||
71 | ### only root can use these options | |
72 | # | |
73 | # chroot() to directory (default: no chroot() ) | |
74 | #server.chroot = "/" | |
75 | ||
76 | ## change uid to <uid> (default: don't care) | |
77 | server.username = "lighttpd" | |
78 | ||
79 | ## change uid to <uid> (default: don't care) | |
80 | server.groupname = "lighttpd" | |
81 | ||
82 | # Traffic Shaping | |
83 | # | |
84 | #connection.kbytes-per-second = 32 | |
85 | #server.kbytes-per-second = 128 | |
86 | ||
87 | # webapps configs | |
88 | include_shell "/bin/cat webapps.d/*.conf" |