- sudo yum install lighttpd
- # Create a file containing:
server.document-root = "/path/to/your/directory/here/" server.port = 3000 mimetype.assign = ( ".html" => "text/html", ".txt" => "text/plain", ".jpg" => "image/jpeg", ".png" => "image/png" )
- lighttpd -t -f lighttpd.conf # check config
- lighttpd -D -f lighttpd.conf # run webserver
(source)