Both sides previous revisionPrevious revisionNext revision | Previous revision |
software:lighttpd [2020-01-26 21:27] – [cgit] Add link, remove distro mentions zlg | software:lighttpd [2020-05-26 00:10] (current) – Better match the name zlg |
---|
====== lighttpd ====== | ====== lighttpd ====== |
| |
[[https://lighttpd.net|Lighttpd]] (AKA lighty) is a **light**weight **HTTP** server written in C that specializes in low resource usage. Its configuration is powerful, but more terse than Apache and nginx. Due to lighty's focus on resource use, it has a variety of strategies for dealing with high resource use. | [[https://lighttpd.net|Lighttpd]] (AKA lighty) is a **light**weight **HTTP** **d**aemon (server) written in C that specializes in low resource usage. Its configuration is powerful, but more terse than Apache and nginx. Due to lighty's focus on resource use, it has a variety of strategies for dealing with high resource use. |
| |
Since lighttpd doesn't get much attention in documentation, this page will cover steps to take for common applications or settings that make life easier. | Since lighttpd doesn't get much attention in documentation, this page will cover steps to take for common applications or settings that make life easier. |
| |
<file conf /etc/lighttpd/lighttpd.conf> | <file conf /etc/lighttpd/lighttpd.conf> |
server,modules += ( "mod_cgi", "mod_dirlisting" ) | server.modules += ( "mod_cgi", "mod_dirlisting" ) |
# Change this to suit your needs: | # Change this to suit your needs: |
server.upload-dirs = ( "/var/tmp/lighttpd" ) | server.upload-dirs = ( "/var/tmp/lighttpd" ) |
"socket" = "/path/to/socket", # I put mine under /var/run | "socket" = "/path/to/socket", # I put mine under /var/run |
"x-sendfile" => "enable", | "x-sendfile" => "enable", |
"x-sendfile-docroot" => ( server.document-root + '/data/media' ) # For me it's /srv/www/wiki | "x-sendfile-docroot" => ( server.document-root ) # For me it's /srv/www/wiki |
) | ) |
) | ) |