Apache2 配置 https
一、安装 Apache2 sudo apt-get update sudo apt-get install apache2 默认根目录为 /var/www/html 二、 配置Apache https 在安装 apache2后,需要重启才能使用 a2enmod 等命令 1、开启SSL模块 sudo a2enmod ssl 2、启用SSL站点 sudo a2ensite default-ssl 3、加入监听端口 443 sudo vi /etc/apache2/ports.conf Listen 80 443 //监听多个端口 4、配置SSL证书 在ServerAdmin下另起一 …