为localhost添加https

1.按照https://stackoverflow.com/a/7184031/4619958来做

其中,CommonName填写localhost

2.在ssl.conf里头加上

<Directory "E:/MyProjects/wordpress/">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride all
        Order Deny,Allow
        Allow from all
        Require all granted
</Directory>
原文地址:https://www.cnblogs.com/turtlegood/p/7088049.html