--- embedaddon/lighttpd/doc/config/lighttpd.conf 2013/10/14 10:32:48 1.1.1.1 +++ embedaddon/lighttpd/doc/config/lighttpd.conf 2016/11/02 10:35:00 1.1.1.3 @@ -185,10 +185,10 @@ server.event-handler = "linux-sysepoll" ## and write(). Every modern OS provides its own syscall to help network ## 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 ## -server.network-backend = "linux-sendfile" +server.network-backend = "sendfile" ## ## As lighttpd is a single-threaded server, its main resource limit is @@ -207,6 +207,35 @@ server.network-backend = "linux-sendfile" 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. ## ## lighttpd can utilize FAM/Gamin to cache stat call. @@ -336,6 +365,12 @@ $HTTP["url"] =~ "\.pdf$" { 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 ## #server.error-handler-404 = "/error-handler.html" @@ -403,15 +438,23 @@ server.upload-dirs = ( "/var/tmp" ) ## ssl.engine = "enable" ## ssl.pemfile = "/etc/ssl/private/www.example.com.pem" ## # -## # Mitigate BEAST attack: +## # (Following SSL/TLS Deployment Best Practices 1.3 / 17 September 2013 from: +## # https://www.ssllabs.com/projects/best-practices/index.html) +## # - BEAST is considered mitigaed on client side now, and new weaknesses have been found in RC4, +## # so it is strongly advised to disable RC4 ciphers (HIGH doesn't include RC4) +## # - It is recommended to disable 3DES too (although disabling RC4 and 3DES breaks IE6+8 on Windows XP, +## # so you might want to support 3DES for now - just remove the '!3DES' parts below). +## # - The examples below prefer ciphersuites with "Forward Secrecy" (and ECDHE over DHE (alias EDH)), remove '+kEDH +kRSA' +## # if you don't want that. +## # - SRP and PSK are not supported anyway, excluding those ('!kSRP !kPSK') just keeps the list smaller (easier to review) +## # Check your cipher list with: openssl ciphers -v '...' (use single quotes as your shell won't like ! in double quotes) ## # -## # A stricter base cipher suite. For details see: -## # http://blog.ivanristic.com/2011/10/mitigating-the-beast-attack-on-tls.html +## # If you know you have RSA keys (standard), you can use: +## ssl.cipher-list = "aRSA+HIGH !3DES +kEDH +kRSA !kSRP !kPSK" +## # The more generic version (without the restriction to RSA keys) is +## # ssl.cipher-list = "HIGH !aNULL !3DES +kEDH +kRSA !kSRP !kPSK" ## # -## ssl.cipher-list = "ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4-SHA:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM" -## # ## # Make the server prefer the order of the server side cipher suite instead of the client suite. -## # This is necessary to mitigate the BEAST attack (unless you disable all non RC4 algorithms). ## # This option is enabled by default, but only used if ssl.cipher-list is set. ## # ## # ssl.honor-cipher-order = "enable"