1# $OpenBSD: httpd.conf,v 1.22 2020/11/04 10:34:18 denis Exp $ 2 3server "example.com" { 4 listen on * port 80 5 location "/.well-known/acme-challenge/*" { 6 root "/acme" 7 request strip 2 8 } 9 location * { 10 block return 302 "https://$HTTP_HOST$REQUEST_URI" 11 } 12} 13 14server "example.com" { 15 listen on * tls port 443 16 tls { 17 certificate "/etc/ssl/example.com.fullchain.pem" 18 key "/etc/ssl/private/example.com.key" 19 } 20 location "/pub/*" { 21 directory auto index 22 } 23 location "/.well-known/acme-challenge/*" { 24 root "/acme" 25 request strip 2 26 } 27} 28