xampp 添加ssl 访问

编辑php.ini 文件,找到 “;extension=php_openssl.dll” (去掉前面的;号注释)

 

<VirtualHost *:8090>
DocumentRoot "C:/xampp/htdocs/edc2/backend/web"
ServerName 127.0.0.1:8090
SSLEngine on
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"
</VirtualHost>
<VirtualHost *:8091>
DocumentRoot "C:/xampp/htdocs/edc2/frontend/web"
ServerName 127.0.0.1:8091
SSLEngine on
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"
</VirtualHost>

posted @ 2017-02-09 10:32  Yeah,程序猿  阅读(1499)  评论(0编辑  收藏  举报