# $OpenBSD: httpd.conf,v 1.19 2018/04/11 15:51:50 florian Exp $ server "example.com" { listen on * port 80 location "/.well-known/acme-challenge/*" { root "/acme" root strip 2 } location * { block return 302 "https://$HTTP_HOST$REQUEST_URI" } } server "example.com" { listen on * tls port 443 tls { certificate "/etc/ssl/example.com.fullchain.pem" key "/etc/ssl/private/example.com.key" } location "/pub/*" { directory auto index } location "/.well-known/acme-challenge/*" { root "/acme" root strip 2 } }