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",
)

2 Comments

  1. Bob says:

    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.

  2. MichaellaS says:

    tks for the effort you put in here I appreciate it!

Leave a Reply

Please use markdown to make your comment beautiful.