安装证书模块
yum install mod_ssl
查看apache已安装了哪些模块
sudo apachectl -M
编辑apache配置文件/etc/httpd/conf.d/ssl.conf
<VirtualHost>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://www.xxx.com$1 [L,R]
</VirtualHost>
安装证书模块
yum install mod_ssl
查看apache已安装了哪些模块
sudo apachectl -M
编辑apache配置文件/etc/httpd/conf.d/ssl.conf
<VirtualHost>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://www.xxx.com$1 [L,R]
</VirtualHost>
本文标题:Apache 配置https
本文链接:https://www.haomeiwen.com/subject/hvaacctx.html
网友评论