我用的是ssl for free下载的SSL证书,,服务器系统是ubuntu16,在/usr/local/apache71/conf
中找到了httpd-ssl.conf
。
我只把这个修改了2行:
SSLCertificateFile "/root/ssl/certificate.crt"
SSLCertificateKeyFile "/root/ssl/private.key"
当然,我也已经把这三个放进了 /root/ssl/
下,之后用 apachectl restart
重启了apache,但是现在网站还是http,没有变成https协议。
请问还要怎样,才能变成https?
把httpd-ssl.conf贴出来吧,你应该是没有把证书配置到对应的域名下吧。