Lighttpd

Installation

aptitude install lighttpd

Configuration

Adapt /var/www/html/index.html and add a favicon.ico there as well.

SSL

Adapt certificate paths in /etc/lighttpd/conf-available/10-ssl.conf and add the server name:

# /usr/share/doc/lighttpd/ssl.txt

# check against https://www.ssllabs.com/ssltest/ for issues

$SERVER["socket"] == "0.0.0.0:443" {
        ssl.engine  = "enable"
        ssl.pemfile = "/etc/letsencrypt/live/domain.example/cert+privkey.pem"
        ssl.ca-file = "/etc/letsencrypt/live/domain.example/fullchain.pem"
        server.name = "domain.example"

        ssl.cipher-list = "ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM"
        ssl.honor-cipher-order = "enable"
}

Additionally redirect by default to https by creating /etc/lighttpd/conf-available/10-http-https-redirect.conf:

$HTTP["scheme"] == "http" {
    $HTTP["host"] =~ ".*" {
        url.redirect = (".*" => "https://%0$0")
    }
}

Activate the redirection by running lighty-enable-mod http-https-redirect and reloading lighttpd.