diff --git a/main.go b/main.go index ec3811d..0cb5e53 100644 --- a/main.go +++ b/main.go @@ -48,7 +48,7 @@ func main() { slog.Debug("Starting HTTP listener", slog.String("addr", config.HttpListenAddr)) smux := http.NewServeMux() - smux.Handle(defaultAcmeChallengePath, http.StripPrefix(defaultAcmeChallengePath, http.FileServer(http.Dir(config.AcmeChallengePath)))) + smux.Handle(defaultAcmeChallengePath, http.FileServer(http.Dir(config.AcmeChallengePath))) smux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, "https://"+r.Host+r.RequestURI, http.StatusMovedPermanently) })