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