]>
Commit | Line | Data |
---|---|---|
1 | # $Id$ | |
2 | # lighttpd configuration file. | |
3 | ||
4 | include_shell "for f in conf.d/*.conf ; do [ -f \"$f\" ] && echo \"include \\"$f\\"\" ; done" | |
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 | ## http://redmine.lighttpd.net/projects/lighttpd/repository/revisions/2550 | |
15 | ## NOTE: It is not reopened in log_error_cycle, so don't setup logrotate to this. | |
16 | server.breakagelog = "/var/log/lighttpd/breakage.log" | |
17 | ||
18 | server.pid-file = "/var/run/lighttpd.pid" | |
19 | ||
20 | # mimetype mapping | |
21 | include "mime.types.conf" | |
22 | # default mime type | |
23 | mimetype.assign += ( | |
24 | "" => "application/octet-stream", | |
25 | ) | |
26 | ||
27 | ## set the event-handler (read the performance section in the manual) | |
28 | # Linux 2.4+ rt-signals linux-rtsig | |
29 | # Linux 2.6+ epoll linux-sysepoll | |
30 | #server.event-handler = "linux-sysepoll" | |
31 | ||
32 | # default cames from ulimit -n | |
33 | #server.max-fds = 8192 | |
34 | ||
35 | # maximum number of request within a keep-alive session before the server terminates the connection | |
36 | # default 16 | |
37 | #server.max-keep-alive-requests = 16 | |
38 | ||
39 | # Maximum number of seconds until an idling keep-alive connection is dropped. | |
40 | # default 30 | |
41 | #server.max-keep-alive-idle = 30 | |
42 | ||
43 | # maximum number of seconds until a waiting, non keep-alive read times out and closes the connection | |
44 | # default 60 | |
45 | #server.max-read-idle = 60 | |
46 | ||
47 | # maximum number of seconds until a waiting write call times out and closes the connection | |
48 | # default 360 | |
49 | #server.max-write-idle = 360 | |
50 | ||
51 | # Use the "Content-Type" extended attribute to obtain mime type if possible | |
52 | #mimetype.use-xattr = "enable" | |
53 | ||
54 | ## send a different Server: header | |
55 | ## be nice and keep it at lighttpd | |
56 | #server.tag = "lighttpd" | |
57 | ||
58 | $HTTP["url"] =~ "\.pdf$" { | |
59 | server.range-requests = "disable" | |
60 | } | |
61 | ||
62 | ## Skip responding with 417 for unhandled Expect header for some broken applications | |
63 | #server.reject-expect-100-with-417 = "disable" | |
64 | ||
65 | ######### Options that are good to be but not neccesary to be changed ####### | |
66 | ||
67 | ## bind to port (default: 80) | |
68 | server.port = 80 | |
69 | ||
70 | ## bind to specific host (default: all interfaces) | |
71 | ## the name is resolved to ip at startup only. | |
72 | #server.bind = "www.example.org" | |
73 | ||
74 | ## additionally just bind to localhost:80 | |
75 | #$SERVER["socket"] == "127.0.0.1:80" {} | |
76 | ||
77 | ## error-handler for status 404 | |
78 | #server.error-handler-404 = "/error-handler.html" | |
79 | #server.error-handler-404 = "/error-handler.php" | |
80 | ||
81 | ## | |
82 | ## Format: <errorfile-prefix><status-code>.html | |
83 | ## -> ..../status-404.html for 'File not found' | |
84 | #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-" | |
85 | # | |
86 | ## enable debugging | |
87 | #debug.log-request-header = "enable" | |
88 | #debug.log-response-header = "enable" | |
89 | #debug.log-request-handling = "enable" | |
90 | #debug.log-file-not-found = "enable" | |
91 | #debug.log-condition-handling = "enable" | |
92 | #debug.log-timeouts = "enable" | |
93 | ||
94 | ### only root can use these options | |
95 | # | |
96 | # chroot() to directory (default: no chroot() ) | |
97 | #server.chroot = "/" | |
98 | ||
99 | ## change uid to <uid> (default: don't care) | |
100 | server.username = "lighttpd" | |
101 | ||
102 | ## change uid to <uid> (default: don't care) | |
103 | server.groupname = "lighttpd" | |
104 | ||
105 | # Traffic Shaping | |
106 | # | |
107 | #connection.kbytes-per-second = 32 | |
108 | #server.kbytes-per-second = 128 | |
109 | ||
110 | # webapps configs | |
111 | include_shell "for f in webapps.d/*.conf ; do [ -f \"$f\" ] && echo \"include \\"$f\\"\" ; done" | |
112 | ||
113 | # vhosts config | |
114 | include_shell "for f in vhosts.d/*.conf ; do [ -f \"$f\" ] && echo \"include \\"$f\\"\" ; done" |