自学内容网 自学内容网

Apache HTTP Server 配置SSL证书(Windows)

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 On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</VirtualHost>

<VirtualHost 

原文地址:https://blog.csdn.net/lk1985021/article/details/142871947

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!