|
version 1.1.1.2, 2014/06/15 20:20:06
|
version 1.1.1.3, 2016/11/02 10:35:00
|
|
Line 185 server.event-handler = "linux-sysepoll"
|
Line 185 server.event-handler = "linux-sysepoll"
|
| ## and write(). Every modern OS provides its own syscall to help network |
## and write(). Every modern OS provides its own syscall to help network |
| ## servers transfer files as fast as possible |
## servers transfer files as fast as possible |
| ## |
## |
| ## linux-sendfile - is recommended for small files. | ## sendfile - is recommended for small files. |
| ## writev - is recommended for sending many large files |
## writev - is recommended for sending many large files |
| ## |
## |
| server.network-backend = "linux-sendfile" | server.network-backend = "sendfile" |
| |
|
| ## |
## |
| ## As lighttpd is a single-threaded server, its main resource limit is |
## As lighttpd is a single-threaded server, its main resource limit is |
|
Line 207 server.network-backend = "linux-sendfile"
|
Line 207 server.network-backend = "linux-sendfile"
|
| server.max-fds = 2048 |
server.max-fds = 2048 |
| |
|
| ## |
## |
| |
## listen-backlog is the size of the listen() backlog queue requested when |
| |
## the lighttpd server ask the kernel to listen() on the provided network |
| |
## address. Clients attempting to connect() to the server enter the listen() |
| |
## backlog queue and wait for the lighttpd server to accept() the connection. |
| |
## |
| |
## The out-of-box default on many operating systems is 128 and is identified |
| |
## as SOMAXCONN. This can be tuned on many operating systems. (On Linux, |
| |
## cat /proc/sys/net/core/somaxconn) Requesting a size larger than operating |
| |
## system limit will be silently reduced to the limit by the operating system. |
| |
## |
| |
## When there are too many connection attempts waiting for the server to |
| |
## accept() new connections, the listen backlog queue fills and the kernel |
| |
## rejects additional connection attempts. This can be useful as an |
| |
## indication to an upstream load balancer that the server is busy, and |
| |
## possibly overloaded. In that case, configure a smaller limit for |
| |
## server.listen-backlog. On the other hand, configure a larger limit to be |
| |
## able to handle bursts of new connections, but only do so up to an amount |
| |
## that the server can keep up with responding in a reasonable amount of |
| |
## time. Otherwise, clients may abandon the connection attempts and the |
| |
## server will waste resources servicing abandoned connections. |
| |
## |
| |
## It is best to leave this setting at its default unless you have modelled |
| |
## your traffic and tested that changing this benefits your traffic patterns. |
| |
## |
| |
## Default: 1024 |
| |
## |
| |
#server.listen-backlog = 128 |
| |
|
| |
## |
| ## Stat() call caching. |
## Stat() call caching. |
| ## |
## |
| ## lighttpd can utilize FAM/Gamin to cache stat call. |
## lighttpd can utilize FAM/Gamin to cache stat call. |
|
Line 334 $HTTP["url"] =~ "\.pdf$" {
|
Line 363 $HTTP["url"] =~ "\.pdf$" {
|
| ## .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi |
## .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi |
| ## |
## |
| static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".scgi" ) |
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".scgi" ) |
| |
|
| |
## |
| |
## error-handler for all status 400-599 |
| |
## |
| |
#server.error-handler = "/error-handler.html" |
| |
#server.error-handler = "/error-handler.php" |
| |
|
| ## |
## |
| ## error-handler for status 404 |
## error-handler for status 404 |