From a9b51fe71373c53ef3c0bc819c57a3df43de415b Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 12 Dec 2023 14:20:47 -0700 Subject: [PATCH] Fix domain name display in on-demand tls demo --- src/on-demand-tls.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/on-demand-tls.html b/src/on-demand-tls.html index b5a09e7..38d39bb 100644 --- a/src/on-demand-tls.html +++ b/src/on-demand-tls.html @@ -32,7 +32,7 @@ What happened?

- Caddy automatically obtained a certificate for your domain, {{.Req.Host}}, without any change to the server's configuration. We call this technology On-Demand TLS, and it's an exclusive feature of Caddy. + Caddy automatically obtained a certificate for your domain, {{.Req.Header.Get "X-Forwarded-Host"}}, without any change to the server's configuration. We call this technology On-Demand TLS, and it's an exclusive feature of Caddy.

With On-Demand TLS, no config changes are required to serve more domains over HTTPS. This is perfect for servers hosting content or APIs for customer-owned domains because your HTTPS deployment scales as tall and wide as your business does.