This is an old revision of the document!
lighttpd is a small and fast HTTP server that does not need much system resources. So it is ideal to be our Raspberry PI HTTP server.
To install lighttpd run this command:
sudo apt-get install lighttpd
The document root can be changed with this config parameter:
server.document-root = "/var/www"
More details can be found here.
dir-listing.activate = "enable"
lighttpd offers many configuration possibilities for directory listing. More details can be found here.