首页 > 代码库 > xampp 添加ssl 访问

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>

xampp 添加ssl 访问