当前位置 : 主页 > 网络编程 > PHP >

phpstudy+apache配置https

来源:互联网 收集:自由互联 发布时间:2021-06-28
httpd-ssl.conf Listen 443 DocumentRoot "D:/phpStudy/WWW/wx"ServerName www.example.com:443ServerAdmin sdkz_applet@163.comSSLEngine onSSLProtocol all -SSLv2 -SSLv3SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
httpd-ssl.conf
Listen 443


 
  
DocumentRoot "D:/phpStudy/WWW/wx"
ServerName www.example.com:443
ServerAdmin sdkz_applet@163.com

SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLHonorCipherOrder on
SSLCertificateFile "D:/phpStudy/Apache/conf/ssl/www_example_com.crt"
SSLCertificateKeyFile "D:/phpStudy/Apache/conf/ssl/www_example_com.key"
SSLCertificateChainFile "D:/phpStudy/Apache/conf/ssl/www_example_com__bundle.crt"

  
    Options -Indexes +FollowSymLinks +ExecCGI AllowOverride All Order Allow,Deny Allow From All Require all granted 
  

 
read
先去申请ssl证书,申请下来放到服务器上,配置好即可。需要注意的是防火墙,443端口
上一篇:11111111111
下一篇:2017.10.9
网友评论