diff --git a/Software/Application/Caddy/Caddy_的使用.md b/Software/Application/Caddy/Caddy_的使用.md index 4e2d81c..ddb26ca 100644 --- a/Software/Application/Caddy/Caddy_的使用.md +++ b/Software/Application/Caddy/Caddy_的使用.md @@ -86,3 +86,19 @@ Caddyfile 文件内容如下 index index.html } ``` + +## HTTPS + +TLS 必须满足以下要求才能保证 HTTPS 功能正常: + +* The hostname: + * is not empty + * is not localhost + * is not an IP address + * has no more than 1 wildcard (*) + * wildcard must be left-most label +* The port is not explicitly 80 +* The scheme is not explicitly http +* TLS is not turned off in site's definition +* Certificates and keys are not provided by you +* Caddy is able to bind to ports 80 and 443 (unless you use the DNS challenge)