phpstudy 2016搭建https
程序员文章站
2022-05-01 09:38:11
...
1.勾选php_openssl
2.打开vhosts.conf文件,添加以下代码
Listen 443
<VirtualHost *:443>
DocumentRoot "C:\phpStudy\WWW"
ServerName www.myxxxxxxx.xyz
ServerAlias myxxxxxxx.xyz
SSLEngine on
SSLProtocol TLSv1 TLSv1.1 TLSv1.2
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLCertificateFile "C:\phpStudy\Apache\conf\ssl\2_www.myxxxxxxx.xyz.crt"
SSLCertificateKeyFile "C:\phpStudy\Apache\conf\ssl\3_www.myxxxxxxx.xyz.key"
SSLCertificateChainFile "C:\phpStudy\Apache\conf\ssl\1_root_bundle.crt"
<Directory "C:\phpStudy\WWW">
Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
3. 最后重启php
上一篇: nginx ssl 双向认证