Return to httpd.conf CVS log | Up to [local] / src / etc / examples |
File: [local] / src / etc / examples / httpd.conf (download)
Revision 1.22, Wed Nov 4 10:34:18 2020 UTC (3 years, 7 months ago) by denis
Back out last commit. Some devs are not convinced. |
# $OpenBSD: httpd.conf,v 1.22 2020/11/04 10:34:18 denis Exp $ server "example.com" { listen on * port 80 location "/.well-known/acme-challenge/*" { root "/acme" request 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" request strip 2 } }