0
点赞
收藏
分享

微信扫一扫

24.5 基于http服务发现模式

小铺有酒一两不够 2024-10-15 阅读 23

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 
举报

相关推荐

0 条评论