Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
acmeserver: Trim slashes from path prefix
See https://caddy.community/t/mtls-tls-internal-error/12807
Matthew Holt committed
Jun 21, 2021 at 11:56 UTC
2de7e14e1c5fcc8c846b341583597ab65eaf7156
1 file changed
+3
-3
modules/caddypki/acmeserver/acmeserver.go
+3
-3
@@ -150,9 +150,9 @@ func (ash *Handler) Provision(ctx caddy.Context) error {
150
// create the router for the ACME endpoints
151
acmeRouterHandler := acmeAPI.NewHandler(acmeAPI.HandlerOptions{
152
CA: auth,
153
- DB: acmeDB, // stores all the server state
154
- DNS: ash.Host, // used for directory links; TODO: not needed (follow-up upstream with step-ca)
155
- Prefix: ash.PathPrefix, // used for directory links
153
+ DB: acmeDB, // stores all the server state
154
+ DNS: ash.Host, // used for directory links; TODO: not needed (follow-up upstream with step-ca)
155
+ Prefix: strings.Trim(ash.PathPrefix, "/"), // used for directory links
156
})
157
158
// extract its http.Handler so we can use it directly