Minimal lighttpd configuration

This is the configuration I used to get lighttpd to serve up the results of AxMan.

server.document-root = "/home/magnusth/tmp/axman/www/"
server.port = 8080

index-file.names = ( "index.html" )

mimetype.assign = (
  ".html" => "text/html",
)
Share

2 Comments

  1. Nice! I needed a thin webserver for posting a “We’re sorry, but our service seems to be on fire…” placeholder page to placate users during extended outages. While we’re currently using Apache, I want to reduce the footprint of the “sorry” announcement and the example lighttpd config was just too much to wade through. I added entries for server.username and server.groupname so the “sorry” docroot could lie within the (broken) application directory and there’d be no issue with users and permissions.

    All this gets stuffed into our configuration management system (Puppet) so as we deploy servers, lighttpd is automatically installed and configured on the boxes that need it.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>