From 9c1fe24435e1a3333595c8b4f6cc917fb343ddc4 Mon Sep 17 00:00:00 2001 From: "ithink.chan" Date: Tue, 16 Jul 2019 14:24:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=85=B3=E4=BA=8E=20HTTPS=20?= =?UTF-8?q?=E7=9A=84=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Software/Application/Caddy/Caddy_的使用.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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)