Edit

IABSD.fr/src/etc/examples/httpd.conf

Branch :

  • Show log

    Commit

  • Author : mbuhl
    Date : 2025-02-21 10:19:52
    Hash : 1d2dd358
    Message : Remove acme-challenge location from HTTPS server configuration as RFC8555 8.3 explicitly states that the challenge must be over HTTP. From Lucas de Sena (lucas AT seninha.org), thanks! ok sdk@

  • etc/examples/httpd.conf
  • # $OpenBSD: httpd.conf,v 1.23 2025/02/21 10:19:52 mbuhl 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
    	}
    }