Apache2.4.39 HTTP Server 配置SSL证书
1. 申请证书
申请证书步骤(略)
证书名称如下:
ca-bundle.crt
xxx_com.crt
xxx_com.key
2. 配置
证书位置:Apache2.4.39\conf\ssl
Apache2.4.39\conf\ssl
修改两个配置文件:
0localhost_80.conf
<VirtualHost *:80>RewriteEngine OnRewriteCond %{HTTPS} offRewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</VirtualHost><VirtualHost