User Tools

Site Tools


software:lighttpd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:lighttpd [2020-01-26 21:27] – [cgit] Add link, remove distro mentions zlgsoftware:lighttpd [2020-05-26 00:10] (current) – Better match the name zlg
Line 1: Line 1:
 ====== 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 (serverwritten 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.
Line 57: Line 57:
  
 <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" )
Line 95: Line 95:
             "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
         )         )
     )     )
software/lighttpd.1580074046.txt.gz · Last modified: 2020-01-26 21:27 by zlg