]> git.pld-linux.org Git - packages/lighttpd.git/blob - lighttpd.conf
no dist-xz for ac
[packages/lighttpd.git] / lighttpd.conf
1 # lighttpd configuration file.
2
3 include_shell "for f in conf.d/*.conf ; do [ -f \"$f\" ] && echo \"include \\"$f\\"\" ; done"
4
5 ## a static document-root, for virtual-hosting take look at the
6 ## server.virtual-* options
7 server.document-root = "/home/services/lighttpd/html/"
8
9 ## where to send error-messages to
10 server.errorlog = "/var/log/lighttpd/error.log"
11 #server.errorlog-use-syslog = "enable"
12
13 ## http://redmine.lighttpd.net/projects/lighttpd/repository/revisions/2550
14 ## NOTE: It is not reopened in log_error_cycle, so don't setup logrotate to this.
15 server.breakagelog = "/var/log/lighttpd/breakage.log"
16
17 server.pid-file = "/var/run/lighttpd.pid"
18
19 # mimetype mapping
20 include "mime.types.conf"
21 # default mime type
22 mimetype.assign += (
23         "" => "application/octet-stream",
24 )
25
26 ## set the event-handler (read the performance section in the manual)
27 # Linux 2.4+   rt-signals linux-rtsig
28 # Linux 2.6+   epoll   linux-sysepoll
29 #server.event-handler = "linux-sysepoll"
30
31 ## The basic network interface for all platforms at the syscalls read()
32 ## and write(). Every modern OS provides its own syscall to help network
33 ## servers transfer files as fast as possible
34 ##
35 ## linux-sendfile - is recommended for small files.
36 ## writev         - is recommended for sending many large files
37 ##
38 #server.network-backend = "linux-sendfile"
39
40 # default cames from ulimit -n
41 #server.max-fds = 8192
42
43 ##
44 ## Stat() call caching.
45 ##
46 ## lighttpd can utilize FAM/Gamin to cache stat call.
47 ##
48 ## possible values are:
49 ## disable, simple or fam.
50 ##
51 #server.stat-cache-engine = "simple"
52
53 ##
54 ## Fine tuning for the request handling
55 ##
56 ## max-connections == max-fds/2 (maybe /3)
57 ## means the other file handles are used for fastcgi/files
58 ##
59 #server.max-connections = 1024
60
61 # maximum number of request within a keep-alive session before the server terminates the connection
62 # default 16
63 #server.max-keep-alive-requests = 16
64
65 # Maximum number of seconds until an idling keep-alive connection is dropped.
66 # default 30
67 #server.max-keep-alive-idle = 30
68
69 # maximum number of seconds until a waiting, non keep-alive read times out and closes the connection
70 # default 60
71 #server.max-read-idle = 60
72
73 # maximum number of seconds until a waiting write call times out and closes the connection
74 # default 360
75 #server.max-write-idle = 360
76
77 ##
78 ## Maximum size of a request in kilobytes.
79 ## By default it is unlimited (0).
80 ##
81 ## Uploads to your server can't be larger than this value.
82 ##
83 #server.max-request-size = 0
84
85 # Use the "Content-Type" extended attribute to obtain mime type if possible
86 #mimetype.use-xattr = "enable"
87
88 ##
89 ## Should lighttpd follow symlinks?
90 ##
91 #server.follow-symlink = "enable"
92
93 ##
94 ## force all filenames to be lowercase?
95 ##
96 #server.force-lowercase-filenames = "disable"
97
98 ##
99 ## defaults to /var/tmp as we assume it is a local harddisk
100 ##
101 server.upload-dirs = ( "/var/tmp" )
102
103 ##
104 ## The value for the "Server:" response field.
105 ##
106 ## It would be nice to keep it at "lighttpd".
107 ##
108 #server.tag = "lighttpd"
109
110 $HTTP["url"] =~ "\.pdf$" {
111         server.range-requests = "disable"
112 }
113
114 ## Skip responding with 417 for unhandled Expect header for some broken applications
115 #server.reject-expect-100-with-417 = "disable"
116
117 ######### Options that are good to be but not neccesary to be changed #######
118
119 ## bind to port (default: 80)
120 server.port = 80
121
122 ## Use IPv6?
123 #server.use-ipv6 = "enable"
124
125 ## bind to specific host (default: all interfaces)
126 ## the name is resolved to ip at startup only.
127 #server.bind = "www.example.org"
128
129 ## additionally just bind to localhost:80
130 #$SERVER["socket"] == "127.0.0.1:80"  {}
131
132 ## error-handler for status 404
133 #server.error-handler-404 = "/error-handler.html"
134 #server.error-handler-404 = "/error-handler.php"
135
136 ##
137 ## Format: <errorfile-prefix><status-code>.html
138 ## -> ..../status-404.html for 'File not found'
139 #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
140 #
141 ## enable debugging
142 # http://redmine.lighttpd.net/projects/lighttpd/wiki/DebugVariables
143 #debug.log-request-header    = "enable"
144 #debug.log-request-header-on-error = "enable"
145 #debug.log-response-header   = "enable"
146 #debug.log-request-handling  = "enable"
147 #debug.log-file-not-found    = "enable"
148 #debug.log-condition-handling = "enable"
149 #debug.log-condition-cache-handling = "enable"
150 #debug.log-timeouts = "enable"
151 #debug.log-ssl-noise = "enable"
152
153 ### only root can use these options
154 #
155 # chroot() to directory (default: no chroot() )
156 #server.chroot            = "/"
157
158 ## change uid to <uid> (default: don't care)
159 server.username  = "lighttpd"
160
161 ## change uid to <uid> (default: don't care)
162 server.groupname = "lighttpd"
163
164 ##
165 ##  Traffic Shaping
166 ## -----------------
167 ##
168 ## Values are in kilobyte per second.
169 ##
170 ## Keep in mind that a limit below 32kB/s might actually limit the
171 ## traffic to 32kB/s. This is caused by the size of the TCP send
172 ## buffer.
173 ##
174 ## per server:
175 ##
176 #server.kbytes-per-second = 128
177
178 ##
179 ## per connection:
180 ##
181 #connection.kbytes-per-second = 32
182
183 # webapps configs
184 include_shell "for f in webapps.d/*.conf ; do [ -f \"$f\" ] && echo \"include \\"$f\\"\" ; done"
185
186 # vhosts config
187 include_shell "for f in vhosts.d/*.conf ; do [ -f \"$f\" ] && echo \"include \\"$f\\"\" ; done"
This page took 0.051458 seconds and 3 git commands to generate.