【发布时间】:2018-09-09 01:29:06
【问题描述】:
我的子域无法在 localhost 上使用 SSL。
我为我的 XAMPP 安装生成了我的 SSL 证书作为“localhost”。
我通常有两个文档根:
DocumentRoot C:\Files\PHPCode
ServerName phpcode.localhost
&
DocumentRoot C:\server\xampp
ServerName localhost
如果我使用 https://localhost,我可以让 Chrome 在 SSL 中工作,但它不适用于子域虚拟主机 https://phpcode.localhost
我在为本地主机生成 SSL 时犯了错误吗?或者我可以更改一些设置以使其正常工作吗?
【问题讨论】:
标签: apache ssl openssl xampp virtualhost